Hello,
I'm hoping this is the right newsgroup to post to..
On my mail server, I was using sendmail and Cyrus (for IMAP). Then I
needed to integrate procmail into the mix (procmail needs to stay for
various reasons and I can't change that...).
Right now, things seem to be somewhat working. For example:
If I send an email from say gmail to my email address on this machine,
sendmail gets the email, procmail is activated, the procmail filters
are executed and the email ends up in the proper cyrus mailbox.
Now...
If I am say SSHed into the machine, this is where things are a bit
odd. If say I do:
echo "test email" | mail -s "This is a test" somelocaluser
or
echo "test email" | mail -s "This is a test" somelocaluser [at] domain.com
Sendmail will get the mail, the procmail filters are executed, but the
email always ends up in /var/mail/cyrus.
This obviously also effects emails from crons, etc.
Has anybody ever seen this before? Any help would be greatly
appreciated as this is driving me nuts :)
My relevant configs are:
sendmail.mc:
-----------------
divert(-1)
divert(0)
VERSIONID(`$FreeBSD: src/etc/sendmail/freebsd.mc,v 1.30 2005/06/14
02:25:17 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')
FEATURE(local_procmail)
define(`confCW_FILE', `-o /etc/mail/local-host-names')
define(`confBIND_OPTS', `WorkAroundBrokenAAAA')
define(`confNO_RCPT_ACTION', `add-to-undisclosed')
define(`confPRIVACY_FLAGS', `authwarnings,noexpn,novrfy')
define(`CYRUS_LMTP_SOCKET', `/var/imap/socket/lmtp')
define(`confLOCAL_MAILER', `cyrusv2')
define('CYRUS_MAILER_FLAGS','A5 [at] W')
MAILER(smtp)
MAILER(local)
MAILER(`cyrusv2')
Edits made to the generated sendmail.cf:
-----------------------------------------------------
Mcyrusv2, P=/usr/local/bin/procmail, F=lsDFMnPqA5 [at] , S=10, R /40,
T=X-Unix,
U=cyrus:mail,
A=procmail -p /var/imap/procmail/procmail.global
CYRUSUSER=$u
Thanks!!
