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.
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
--System Parameters--
mail_version = 2.5.4
hostname = myhost.com
uname = Linux myhost.com 2.6.18-194.3.1.el5 #1 SMP Sun May 2 04:17:42
EDT 2010 x86_64 x86_64 x86_64 GNU/Linux
--Packaging information--
--main.cf non-default parameters--
alias_database = hash:/opt/pmx/postfix/etc/aliases
alias_maps = hash:/opt/pmx/postfix/etc/aliases, nis:mail.aliases
broken_sasl_auth_clients = yes
content_filter = pmx:127.0.0.1:10025
html_directory = /opt/pmx/postfix/doc/html
mailbox_size_limit = 0
mydestination = $myhostname, $mydomain, localhost.$mydomain, localhost,
myhost.com, otherhost.com
mynetworks = 127.0.0.0/8, xxx.xxx.xxx.xxx0/XX
myorigin = $mydomain
recipient_delimiter = +
relay_domains = mydomain.com
smtpd_client_restrictions = permit_mynetworks,
permit_sasl_authenticated,ignore_policy_error, check_policy_service
inet:localhost:4466
smtpd_recipient_restrictions = permit_sasl_authenticated,
permit_mynetworks, reject_unauth_destination check_relay_domains
smtpd_sasl_auth_enable = yes
smtpd_sasl_authenticated_header = yes
smtpd_sasl_local_domain = mydomain.com
smtpd_sasl_path = /opt/pmx/postfix/var/spool/mqueue/private/auth
smtpd_sasl_type = dovecot
smtpd_tls_CAfile = /etc/pki/dovecot/certs/cacert.pem
smtpd_tls_cert_file = /etc/pki/dovecot/certs/smtpd.crt
smtpd_tls_key_file = /etc/pki/dovecot/private/smtpd.key
smtpd_tls_loglevel = 1
smtpd_tls_received_header = yes
smtpd_tls_session_cache_database =
btree:/opt/pmx/postfix/var/lib/postfix/smtpd_scache
smtpd_use_tls = yes
smtp_generic_maps = pcre:/opt/pmx/postfix/etc/smtp_generic_maps
smtp_tls_note_starttls_offer = yes
smtp_tls_session_cache_database =
btree:/opt/pmx/postfix/var/lib/postfix/smtp_scache
smtp_use_tls = yes
transport_maps = hash:/opt/pmx/postfix/etc/transport
virtual_alias_maps = hash:/opt/pmx/postfix/etc/virtual
--master.cf--
smtp inet n - n - - smtpd
pickup fifo n - n 60 1 pickup
cleanup unix n - n - 0 cleanup
qmgr fifo n - n 300 1 qmgr
tlsmgr unix - - n 1000? 1 tlsmgr
rewrite unix - - n - - trivial-rewrite
bounce unix - - n - 0 bounce
defer unix - - n - 0 bounce
trace unix - - n - 0 bounce
verify unix - - n - 1 verify
flush unix n - n 1000? 0 flush
proxymap unix - - n - - proxymap
proxywrite unix - - n - 1 proxymap
smtp unix - - n - - smtp
relay unix - - n - - smtp
-o smtp_fallback_relay=
showq unix n - n - - showq
error unix - - n - - error
retry unix - - n - - error
discard unix - - n - - discard
local unix - n n - - local
virtual unix - n n - - virtual
lmtp unix - - n - - lmtp
anvil unix - - n - 1 anvil
scache unix - - n - 1 scache
pmx unix - - n - 20 smtp
127.0.0.1:10026 inet n - n - 20 smtpd
-o content_filter=
-o local_recipient_maps=
-o relay_recipient_maps=
-o myhostname=localhost
-o smtpd_helo_restrictions=
-o smtpd_client_restrictions=
-o smtpd_sender_restrictions=
-o smtpd_recipient_restrictions=permit_mynetworks,reject
-o mynetworks=127.0.0.0/8
-o allow_untrusted_routing=yes
-- end of postfinger output --