I've got the following in my /var/log/maillog while running
postfix-2.3.3-2.1.centos.mysql  with mysql for account information.

Jan 11 16:39:57 mailserver amavis[14138]: (14138-11) ESMTP::10024
/var/amavis/tmp/amavis-20100111T163707-14138: <[email protected]> -> <
[email protected]> SIZE=1954 Received: from
mailserver.example.com([127.0.0.1]) by localhost (
mailserver.example.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP for
<[email protected]>; Mon, 11 Jan 2010 16:39:57 -0500 (EST)
Jan 11 16:39:57 mailserver amavis[14138]: (14138-11) Checking: qSdglaHOIgx3
<[email protected]> -> <[email protected]>
Jan 11 16:39:57 mailserver amavis[14138]: (14138-11) FWD via SMTP: <
[email protected]> -> <[email protected]>,BODY=7BIT 250 2.6.0 Ok,
id=14138-11, from MTA([127.0.0.1]:10025): 250 2.0.0 Ok: queued as E72D9EFD27
Jan 11 16:39:57 mailserver amavis[14138]: (14138-11) Passed CLEAN,
[209.85.219.217] <[email protected]> -> <[email protected]>, Message-ID:
<[email protected]>, mail_id:
qSdglaHOIgx3, Hits: -2.599, size: 1954, queued_as: E72D9EFD27, 527 ms
Jan 11 16:39:57 mailserver postfix/smtp[13749]: 2F3B1EFD25: to=<
[email protected]>, relay=127.0.0.1[127.0.0.1]:10024, delay=0.91,
delays=0.38/0/0/0.53, dsn=2.0.0, status=sent (250 2.0.0 Ok: queued as
E72D9EFD27)
Jan 11 16:39:58 mailserver deliver([email protected]): msgid=<
[email protected]>: saved mail to
INBOX
Jan 11 16:39:58 mailserver postfix/pipe[13810]: E72D9EFD27: to=<
[email protected]>, relay=dovecot, delay=0.2, delays=0.04/0/0/0.16,
dsn=2.0.0, status=sent (delivered via dovecot service)


When email comes in to an address in upper case:
[email protected]

it stays upper case, until handed off to Dovecot.
I currently have in master.cf
dovecot unix    -       n       n       -       -      pipe
  flags=DR user=vuser:vuser argv=/usr/libexec/dovecot/deliver -f ${sender}
-d ${us...@${nexthop} -n -m ${extension}

I think I can lower case it on it's way into dovecot, with something like:
dovecot unix    -       n       n       -       -      pipe
  flags=DRhu user=vuser:vuser argv=/usr/libexec/dovecot/deliver -f ${sender}
-d ${us...@${nexthop} -n -m ${extension}

(the "hu" in the flags)
but I'd rather lc it as it enters the system (in part because we use +Spam
as an extension for spam filtering, and I'd rather not change that to +spam
when it enters dovecot). Is there a way to change the email address to LC in
postfix before it goes through amavis?

thanks

rick

Reply via email to