Dave wrote:
Hello,
        Thanks. The mail is rejected, but it's generating bounce messages,
whereas mail to unknown users that smtpd rejects doesn't get queued at all,
mail addressed to mailman seems to start through the queue rather than be
initially rejected.
        Thanks.
Dave.

Please don't top post.
Please press the [Plain Text] button when posting from gmail.


Aug 16 04:41:31 <HOSTNAME> postfix/smtpd[26093]: NOQUEUE: reject: RCPT from
unknown[188.18.105.39]: 554 5.1.1 <max.str...@example.com>: Recipient
address rejected: undeliverable address: unknown user:
"max.str...@example.com"; from=<lorettahutto...@rogers.com>
to=<max.str...@example.com> proto=SMTP helo=<example.com>

This mail was submitted via SMTP, and was rejected during the SMTP transaction.

Aug 11 18:10:01 <Hostname> postfix/pickup[24191]: D15935840004: uid=41
from=<mailman>

This mail was submitted via sendmail(1). Postfix doesn't have a chance to evaluate it until delivery, so it gets bounced.

Aug 11 18:10:28 <Hostname> postfix/smtpd[5186]: connect from
<Hostname>.example.com[127.0.0.1]
Aug 11 18:10:28 <Hostname> postfix/smtpd[5186]: 66B3B5840006:
client=<Hostname>.example.com[127.0.0.1]

This mail was submitted from localhost, which you have exempted from unknown recipient checks by permit_mynetworks.

If you want to enforce unknown recipient checks for local users, list "reject_unlisted_recipient" before "permit_mynetworks", but be aware some user mail programs react badly to having submissions rejected.

  -- Noel Jones



-----Original Message-----
From: owner-postfix-us...@postfix.org
[mailto:owner-postfix-us...@postfix.org] On Behalf Of Sahil Tandon
Sent: Sunday, August 16, 2009 5:02 PM
To: postfix-users@postfix.org
Subject: Re: postfix not rejecting single nonexistent user

On Sun, 16 Aug 2009, Dave wrote:

        I have two domains on this machine, one example.com that is a
virtual
mailbox domain holds all users, the other a local domain in mydestination called lists.example.com a subdomain is for mailman use. From what i'm seeing in these logs i do not believe lists.example.com is coming in to play either.
        For all nonexistent users smtpd rejects them:

Aug 16 04:41:30 <HOSTNAME> postfix/smtpd[26093]: connect from unknown[188.18.105.39] Aug 16 04:41:31 <HOSTNAME> postfix/smtpd[26093]: NOQUEUE: reject: RCPT from unknown[188.18.105.39]: 554 5.1.1 <max.str...@example.com>: Recipient address rejected: undeliverable address: unknown user: "max.str...@example.com"; from=<lorettahutto...@rogers.com> to=<max.str...@example.com> proto=SMTP helo=<example.com> Aug 16 04:41:31 <HOSTNAME> postfix/cleanup[25790]: 8547A1509002A:
message-id=<20090816094131.8547a15090...@mail.example.com>
Aug 16 04:41:31 <HOSTNAME> postfix/virtual[25791]: 8547A1509002A:
to=<max.str...@example.com>, relay=virtual, delay=0, delays=0/0/0/0, dsn=5.1.1, status=undeliverable (unknown user: "max.str...@example.com") Aug 16 04:41:31 <HOSTNAME> postfix/smtpd[26093]: disconnect from unknown[188.18.105.39]

the single exception to this is mail...@example.com, which is not a virtual user in the example.com virtual mailbox domain, but which is listed in the /etc/passwd file as a user, specifically the user who runs the mailman software. This user is getting rejected by virtual, not local as i would expect.

Because you specify 'example.com' in $virtual_mailbox_domains, its valid
recipients are governed by $virtual_mailbox_maps.  The /etc/passwd file does
not come into play.  Therefore, if mail...@example.com is not listed in the
aforementioned map, mail addressed to that address is rejected.  It seems
everything is working as designed.

--
Sahil Tandon <sa...@tandon.net>


Reply via email to