7 msgPostfix 2.2.5 on latest Solaris 9 x86
5 msgPostfix Relay, and Pop-before-smtp
12 msgNewb Question
13 msgBest defense against this?
1 msgundelivered mail problem - SOLVED
4 msgLegal local-part
3 msgvirtual_alias_domains with mysql: 'User unknown...
6 msgSubmission port (587): howto to use differente ...
5 msgWhen does smtpd_reject_unlisted_recipient kick in?
4 msgPostfix 'falling back' on sasldb? I don't want ...
3 msgNested access maps (I think ;))
3 msgSuppression of encoding bad header function in ...
4 msgRE: Catchall ??

problem with .forward files + forwarding loops
\ Danny Yee (21 Sep 2007)
. \ (Wietse Venema) (21 Sep 2007)
. . \ Danny Yee (21 Sep 2007)

5 msgPostfix Strange Behaviours
7 msgContent filter question, based upon auth'ed or not
28 msgMail stuck in active queue for loooong time
11 msgHow to stop a user from changing the 'From:' he...
10 msg[Semi-OT] blocked port 465, anywhere?
7 msgchroot problems on Nexenta (OpenSolaris)
Subject:problem with .forward files + forwarding loops
Group:Postfix-users
From:Danny Yee
Date:21 Sep 2007


 

There are no problems without a .forward file.

If a user dannyt has a .forward file containing
\dannyt
(or that plus a vacation pipe) then there's a mail forwarding loop
and we get this:

Sep 21 22:33:07 mail postfix/pipe[15759]: 0531C74C3C6: to=<dannyt>, orig_to=<dannyt>, relay=filter, delay=5.8, delays=1.6/0/0/4.3, dsn=2.0.0, status=sent (delivered via filter service)
Sep 21 22:33:08 mail postfix/local[13207]: E8FA774C3D4: to=<dannyt>, relay=local, delay=0.07, delays=0.04/0/0/0.02, dsn=2.0.0, status=sent (forwarded as F1AA374C3B1)
Sep 21 22:33:08 mail postfix/local[13251]: F1AA374C3B1: to=<dannyt>, relay=local, delay=0.04, delays=0.01/0/0/0.02, dsn=5.4.6, status=bounced (mail forwarding loop for dannyt)

If I change the .forward file to
\dannyt@localhost
then there's no loop and everything works fine.
Sep 21 22:36:08 mail postfix/pipe[16679]: F1DB574C3C6: to=<dannyt>, orig_to=<dannyt>, relay=filter, delay=5.4, delays=0.72/0/0/4.6, dsn=2.0.0, status=sent (delivered via filter service)
Sep 21 22:36:08 mail postfix/local[13251]: 1778474C3D4: to=<dannyt>, relay=local, delay=0.07, delays=0.02/0/0/0.05, dsn=2.0.0, status=sent (delivered to mailbox)
-- even though it's clearly turning dannyt@localhost into the same
dannyt

Can anyone point me at the likely source of this problem? This has
started after I tried to "virtualise" the domain medsci.usyd.edu.au
(instead of having it in mydestinations) -- that involved removing
$mydomain from mydestinations, and adding it to virtual_alias_domains
(which from what I've read should be kosher). I don't see why that
would affect localhost and localhost.medsci.usyd.edu.au, both of which
are still in mydestinations.

Note that I have canonicalisation rules in c/anatomy.usyd.edu.au like this
/^dannyt/ dannyt
and the virtual alias file v/anatomy.usyd.edu.au has linkes like
dannyt dannyt@localhost

postconf -n attached.

Danny.



alias_database = hash:/etc/aliases,
alias_maps = hash:/etc/aliases hash:/etc/mailman/SUBW-hack hash:/etc/mailman/aliases
anvil_rate_time_unit = 60s
anvil_status_update_time = 600s
broken_sasl_auth_clients = yes
canonical_maps = regexp:/etc/postfix/c/anatomy.usyd.edu.au regexp:/etc/postfix/c/bosch.org.au regexp:/etc/postfix/c/medsci.usyd.edu.au regexp:/etc/postfix/c/physiol.usyd.edu.au hash:/etc/postfix/c/mailman
command_directory = /usr/sbin
config_directory = /etc/postfix
daemon_directory = /usr/libexec/postfix
debug_peer_level = 2
disable_vrfy_command = yes
header_checks = pcre:/etc/postfix/header_checks
home_mailbox = mail/INBOX
html_directory = no
inet_interfaces = all
local_header_rewrite_clients = permit_mynetworks, permit_sasl_authenticated
mail_owner = postfix
mailbox_delivery_lock = fcntl
mailbox_size_limit = 982000000
mailq_path = /usr/bin/mailq.postfix
manpage_directory = /usr/share/man
masquerade_classes = envelope_sender, header_sender, header_recipient
masquerade_domains = !lists.medsci.usyd.edu.au !lists.physiol.usyd.edu.au !lists.anatomy.usyd.edu.au medsci.usyd.edu.au physiol.usyd.edu.au anatomy.usyd.edu.au localhost.medsci.usyd.edu.au
masquerade_exceptions = root, postmaster
maximal_backoff_time = 2000s
message_size_limit = 102400000
minimal_backoff_time = 510s
mydestination = $myhostname, localhost.$mydomain, localhost
mydomain = medsci.usyd.edu.au
myhostname = mail.medsci.usyd.edu.au
mynetworks = /etc/postfix/mynetworks
myorigin = $mydomain
newaliases_path = /usr/bin/newaliases.postfix
queue_directory = /var/spool/postfix
queue_run_delay = 505s
readme_directory = /usr/share/doc/postfix-2.3.3/README_FILES
recipient_delimiter = +
remote_header_rewrite_domain = medsci.usyd.edu.au
sample_directory = /usr/share/doc/postfix-2.3.3/samples
sendmail_path = /usr/sbin/sendmail.postfix
setgid_group = postdrop
smtpd_client_connection_count_limit = 5
smtpd_client_connection_rate_limit = 8
smtpd_client_event_limit_exceptions = cidr:/etc/postfix/rate_control_whitelist
smtpd_client_recipient_rate_limit = 40
smtpd_client_restrictions = check_client_access cidr:/etc/postfix/access, permit_mynetworks, permit_sasl_authenticated, reject_rbl_client cbl.abuseat.org, reject_rbl_client bl.spamcop.net, reject_rbl_client list.dsbl.org, reject_rbl_client rhsbl.sorbs.net, hash:/etc/postfix/blacklist_client, permit
smtpd_recipient_restrictions = reject_invalid_hostname reject_unauth_pipelining permit_sasl_authenticated hash:/etc/postfix/local_only check_recipient_access hash:/etc/postfix/filtered_domains permit_mynetworks reject_non_fqdn_recipient reject_unauth_destination check_helo_access pcre:/etc/postfix/helo_checks check_policy_service unix:postgrey/socket
smtpd_restriction_classes = local_senders_only
smtpd_sasl_auth_enable = yes
smtpd_sasl_security_options = noanonymous
smtpd_sender_restrictions = hash:/etc/postfix/blacklist_sender regexp:/etc/postfix/blacklist_sender_bogus permit_mynetworks reject_non_fqdn_sender reject_unknown_sender_domain reject_unlisted_sender permit
trigger_timeout = 20s
unknown_local_recipient_reject_code = 550
virtual_alias_domains = aaia.chass.usyd.edu.au anatomy.usyd.edu.au asb.med.usyd.edu.au bells.usyd.edu.au biomed.usyd.edu.au biophysics.org.au bmri.med.usyd.edu.au bosch.org.au brainandmindaust.org circinfo.net circinfo.org daved.id.au faons.org faons.org.au gradchoir.usyd.edu.au ibr.usyd.edu.au isanweb.org life-extenders.com.au lists.anatomy.usyd.edu.au lists.medsci.usyd.edu.au lists.physiol.usyd.edu.au medsci.usyd.edu.au medsci.soc.usyd.edu.au phoenix.physiol.usyd.edu.au physiol.su.oz.au physiol.usyd.edu.au stgeorgelac.org.au sty.physiol.usyd.edu.au subw.org.au
virtual_alias_maps = hash:/etc/mailman/virtual-mailman hash:/etc/postfix/v/aaia.chass.usyd.edu.au hash:/etc/postfix/v/anatomy.usyd.edu.au hash:/etc/postfix/v/asb.med.usyd.edu.au hash:/etc/postfix/v/bmri.med.usyd.edu.au hash:/etc/postfix/v/bosch.org.au hash:/etc/postfix/v/bells.usyd.edu.au hash:/etc/postfix/v/biomed.usyd.edu.au hash:/etc/postfix/v/biophysics.org.au hash:/etc/postfix/v/brainandmindaust.org hash:/etc/postfix/v/circinfo.net hash:/etc/postfix/v/circinfo.org hash:/etc/postfix/v/daved.id.au hash:/etc/postfix/v/faons.org hash:/etc/postfix/v/faons.org.au hash:/etc/postfix/v/gradchoir.usyd.edu.au hash:/etc/postfix/v/ibr.usyd.edu.au hash:/etc/postfix/v/isanweb.org hash:/etc/postfix/v/life-extenders.com.au hash:/etc/postfix/v/medsci.usyd.edu.au hash:/etc/postfix/v/medsci.soc.usyd.edu.au hash:/etc/postfix/v/phoenix.physiol.usyd.edu.au hash:/etc/postfix/v/physiol.su.oz.au hash:/etc/postfix/v/physiol.usyd.edu.au hash:/etc/postfix/v/stgeorgelac.org.au hash:/etc/postfix/v/sty.physiol.usyd.edu.au hash:/etc/postfix/v/subw.org.au


© 2004-2008 readlist.com