Using this:
define('LOCAL_MAILER_ARGS', 'procmail -t -Yo -a $h -d $u')
in my sendmail mc gives a procmail LOGNAME like
user
instead of
[email protected]
using
define('LOCAL_MAILER_ARGS', 'procmail -t -Yo -a $h -d $u@$h')
gives then
user@localhostname
My problem is, we have email users in the form '[email protected]' and not 'user' - thus procmail can't find e.g. mail directories with just the user address portion 'user'. How can one provide procmail the full recipients address from sendmails lda call?
EDIT:
I'll try it to be more clear, to see the reason.
My 'virtual' recipients are a) no system users and the have different domains in their address, all set with the use_cw_file feature. Local mailer is procmail AND dovecot (+sieve), which is finally handling the virtual users, too. Because dovecot is naming the domain by in addition to the user to handle e.g. [email protected] and [email protected] on the same host.
So I need sendmail to deliver the full address to the lda(stack) (procmail -> sieve -> dovecot).
Sendmail: procmail delivery for virtual domains
You may select procmail mailer with prcoamil script as argument in mailertable (procmail as local mailer is a different beast).
mailertable file:
access (table) file:
Comments:
man procmail
)As root use
echo '$=w' | sendmail -bt
to get list of local email domains