Re: Problems setting up procmail LDA in sendmail
2006-08-16 07:21:49
Udi Mottelo wrote:
On Wed, 16 Aug 2006, Tay, Chee Yong wrote:
Hi all,
I have been playing around with the sendmail.mc and sendmail.cf for the
whole day with reference to the archives, but I still couldn't get
procmail to work. Appreciate if someone can assist me.
My purposes is to allow the mails that are send to the local user on the
server to be processed by procmail to the individual folders.
I am running sendmail on Solaris 5.9, and I have the following
sendmail.mc file in /usr/lib/mail/cf:
Divert(-1)
divert(0)dnl
VERSIONID(`@(#)main.mc 1.5 (Sun) 08/10/00')
OSTYPE(`solaris8')dnl
DOMAIN(`solaris-generic')dnl
#define(`confDOMAIN_NAME', `$w.$m')dnl
#define(`confTO_IDENT', `0s')dnl
#define(`confPRIVACY_FLAGS', `goaway')dnl
#define(`confOPERATORS', `.:@!^/[]+')dnl
define(`PROCMAIL_MAILER_PATH',`/usr/local/bin/procmail')
define(`LOCAL_MAILER_FLAGS', `ShPfn')
define(`LOCAL_MAILER_ARGS', `procmail -a $h -d $u')
FEATURE(`access_db', `hash -o -T<TMPF> /etc/mail/access')
FEATURE(`local_procmail')
MAILER(`local')
MAILER(`procmail')
MAILER(`smtp')
After I build the sendmail.cf file using m4, I am unable to see
Mprocmail inside the sendmail.cf:
# grep procmail sendmail.cf
A=procmail -a $h -d $u
#
# Common code to add local domain name (only if always-add-domain)
#
SAddDomain
Mlocal, P=/usr/lib/mail.local, F=lsDFMAw5:/|@qShPfn,
S=EnvFromSMTP/HdrFromL, R=EnvToL/HdrToL,
T=DNS/RFC822/SMTP,
A=procmail -a $h -d $u
You don't need "Mprocmail" the entry is just "Mlocal".
In my Solaris P=/usr/local/bin/procmail
Did you try /etc/procmailrc? Do you see any error messages
in the logs?
Bye,
Udi
Mprog, P=/bin/sh, F=lsDFMoqeu9, S=EnvFromL/HdrFromL,
R=EnvToL/HdrToL, D=$z:/,
T=X-Unix/X-Unix/X-Unix,
A=sh -c $u
I only have the above, which I feel that its wrong.
What am I missing? Let me know if you guys need more info.
-cheeyong
I use FreeBSD 6.1 STABLE, and this is what is have in my 'domain.mc' file
divert(-1)
divert(0)
VERSIONID(`$FreeBSD: src/etc/sendmail/freebsd.mc,v 1.30.6.1 2006/04/13 04:00:23
gshapiro Exp $')
OSTYPE(freebsd6)
DOMAIN(generic)
FEATURE(access_db, `hash -o -T<TMPF> /etc/mail/access')
FEATURE(blacklist_recipients)
FEATURE(local_lmtp)
FEATURE(mailertable, `hash -o /etc/mail/mailertable')
FEATURE(virtusertable, `hash -o /etc/mail/virtusertable')
dnl Added by me for Procmail
FEATURE(`local_procmail')
dnl Added by me for clamav-milter
INPUT_MAIL_FILTER(`clmilter', `S=local:/var/run/clamav/clmilter.sock, F=,
T=S:4m;R:4m')
DAEMON_OPTIONS(`Name=IPv4, Family=inet')
DAEMON_OPTIONS(`Name=IPv6, Family=inet6, Modifiers=O')
define(`confBIND_OPTS', `WorkAroundBrokenAAAA')
define(`confNO_RCPT_ACTION', `add-to-undisclosed')
define(`confPRIVACY_FLAGS', `authwarnings,noexpn,novrfy')
MAILER(`local')
MAILER(`smtp')
I then run:
make all install restart
and the sendmail properly hands off to procmail and the mail is
delivered. I am assuming that you have the required '.procmailrc' or
system wide 'procmail' file installed.
--
Gerard Seibert
gerard(_at_)seibercom(_dot_)net
A: Because it fouls the order in which people normally read text.
Q: Why is top-posting such a bad thing?
A: Top-posting.
Q: What is the most annoying thing on usenet and in e-mail?
TOPIC: Posting Etiquette
____________________________________________________________
procmail mailing list Procmail homepage: http://www.procmail.org/
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail
|
|