On 8/19/2010 2:21 PM, Daniel Prieto wrote:
On 8/18/2010 4:16 PM, Brian Evans - Postfix List wrote:
On 8/18/2010 3:50 PM, Daniel Prieto wrote:
Brian,
On 8/18/2010 2:17 PM, Brian Evans - Postfix List wrote:
On 8/18/2010 2:05 PM, Daniel Prieto wrote:
Hello,
I have moved from Sendmail to Postfix and eliminated Student email
accounts and kept staff accounts.
I'm using 'virtual_alias_maps" to forward old student email address
to their other new email address that was given to me. When I send an
email to old stude...
<http://groups.google.com/groups/unlock?hl=en&_done=/group/list.postfix.users/browse_thread/thread/59e45e627b99c294%3Fhl%3Den&msg=82d2317b674054fd>@mydomain.com
email address it gets to his new
email address d...
<http://groups.google.com/groups/unlock?hl=en&_done=/group/list.postfix.users/browse_thread/thread/59e45e627b99c294%3Fhl%3Den&msg=82d2317b674054fd>@gmail.com.
However, if I use an alias,
"aliastest" (from my NIS) where the stude...
<http://groups.google.com/groups/unlock?hl=en&_done=/group/list.postfix.users/browse_thread/thread/59e45e627b99c294%3Fhl%3Den&msg=82d2317b674054fd>@mydomain.com
is part of,
then his email is rejected as "unknown user". I can see from my logs
below that the using "postfix/smtp" gets forwarded and the other one
using "postfix/local" gets rejected.
Could someone tell me why it's doing that and what I can do to fix
that? Thanks in advance.
Welcome to the list!
Unfortunately, you seem to have missed the important welcome message:
"TO REPORT A PROBLEM, PLEASE SEE
http://www.postfix.org/DEBUG_README.html#mail"
Sorry, I missed that.
Does the *nix account "student1" exist?
No, it doesn't exist.
Since "mydomain.com" is listed in mydestination and the user does not
exist, we see the expected behavior.
You are using virtual_alias_maps which does allows you to send to
your "aliastest" user since it exists as the key.
Brian, thanks for helping me out but "aliastest" in not in my
virtual_alias_maps "student1" is. "student1" is in the "aliastest"
list among other users. What I don't understand is why Postfix see
"student1" as unknown user when using "aliastest" even though it's
working when sending directly to stude...@mydomain.com?
My comments came from your logs: " to=<stude...@mydomain.com>,
orig_to=<aliast...@mydomain>"
This mail was sent to "aliast...@mydomain" and was rewritten to
"stude...@mydomain.com".
Maybe you should explain where messages are being stored since you said
that "student1" doesn't exist and all messages are being sent to the
local(8) delivery agent. local(8) is responsible to deliver to *nix users.
After the message is received, virtual_alias_maps are used for
rewriting messages to it's destination by the cleanup(8) daemon.
References:
http://www.postfix.org/ADDRESS_REWRITING_README.html#virtual
http://www.postfix.org/virtual.5.html
If you don't want bounces sent, then don't have bad addresses
returned from virtual_alias_maps.
Brian
There should be more log data for a transaction.. use the id
(93CF2BF107F below) to grep through the log
Here are the logs related to 93CF2BF107F:
/var/log/maillog:Aug 16 15:03:56 mail postfix/smtpd[31468]:
93CF2BF107F: client=localhost.localdomain[127.0.0.1]
/var/log/maillog:Aug 16 15:03:56 mail postfix/cleanup[31195]:
93CF2BF107F:
message-id=<aanlktinbh1ubf0mnwmsepcmrp+wyocbe1enjrx-ut...@mail.gmail.com>
/var/log/maillog:Aug 16 15:03:56 mail postfix/qmgr[26402]:
93CF2BF107F: from=<d...@gmail.com>, size=2799, nrcpt=1 (queue active)
/var/log/maillog:Aug 16 15:03:56 mail postfix/smtp[31783]:
380BBBF107E: to=<aliast...@mydomain.com>,
relay=127.0.0.1[127.0.0.1]:10025, delay=0.45, delays=0.09/0/0/0.36,
dsn=2.0.0, status=sent (250 OK, sent 4C698B9C_12641_34064_1
93CF2BF107F)
/var/log/maillog:Aug 16 15:03:56 mail postfix/local[31602]:
93CF2BF107F: to=<stude...@mydomain.com>,
orig_to=<aliast...@mydomain>, relay=local, delay=0.06,
delays=0.04/0/0/0.01, dsn=5.1.1, status=bounced (unknown user:
"student1")
/var/log/maillog:Aug 16 15:03:56 mail postfix/bounce[31800]:
93CF2BF107F: sender non-delivery notification: A2AFBBF1086
/var/log/maillog:Aug 16 15:03:56 mail postfix/qmgr[26402]:
93CF2BF107F: removed
At the bottom of this email is the output of 'postfinger'? Thanks
for you help...
Aug 16 15:06:52 mail postfix/smtp[31783]: C8324BF107F:
to=<d...
<http://groups.google.com/groups/unlock?hl=en&_done=/group/list.postfix.users/browse_thread/thread/59e45e627b99c294%3Fhl%3Den&msg=82d2317b674054fd>@gmail.com>,
orig_to=<stude...
<http://groups.google.com/groups/unlock?hl=en&_done=/group/list.postfix.users/browse_thread/thread/59e45e627b99c294%3Fhl%3Den&msg=82d2317b674054fd>@mydomain.com>,
relay=127.0.0.1[127.0.0.1]:10025, delay=0.43, delays=0.09/0/0/0.34,
dsn=2.0.0, status=sent (250 OK, sent 4C698C4B_12641_34075_1
2BAB2BF1082)
Aug 16 15:03:56 mail postfix/local[31602]: 93CF2BF107F:
to=<stude...
<http://groups.google.com/groups/unlock?hl=en&_done=/group/list.postfix.users/browse_thread/thread/59e45e627b99c294%3Fhl%3Den&msg=82d2317b674054fd>@mydomain.com>,
orig_to=<aliast...
<http://groups.google.com/groups/unlock?hl=en&_done=/group/list.postfix.users/browse_thread/thread/59e45e627b99c294%3Fhl%3Den&msg=82d2317b674054fd>@mydomain.com>,
relay=local, delay=0.06, delays=0.04/0/0/0.01, dsn=5.1.1,
status=bounced (unknown user: "student1")
Daniel