On 9/24/08 2:06 AM, "mouss" <[EMAIL PROTECTED]> wrote:
> Sterling J. Anderson wrote: >> >> >> On 9/23/08 3:28 PM, "mouss" <[EMAIL PROTECTED]> wrote: >> >>> Sterling J. Anderson wrote: >>>> I'm trying to figure out how to have certain messages not get relayed on >>>> one >>>> of my servers. >>>> >>>> Right now I have a server setup as a gateway, and another server setup that >>>> is going to handle mailman mailing lists. When mail comes in to the gateway >>>> for [EMAIL PROTECTED] I am using virtual_alias_maps to redirect that >>>> message >>>> to [EMAIL PROTECTED] The problem is, since mailmain.domain.com has a >>>> relay_host of the gateway machine the messages just hop backa and forth. >>>> >>> The postfix that serves on mailman.domain.com should know that it is >>> responsible of this domain and not use the relay host. >> >> Is it possible the masquerade_domains is confusing things? > > your masquerade_domains seems ok to me. >> >>> if this isn't clear, post the output of 'postconf -n' of the postfix >>> that runs on mailman.domain.com. and show what you did to pass mail to >>> mailman. >> >> alias_database = hash:/etc/aliases >> alias_maps = hash:/etc/aliases >> command_directory = /usr/sbin >> config_directory = /etc/postfix >> daemon_directory = /usr/libexec/postfix >> debug_peer_level = 2 >> html_directory = no >> inet_interfaces = all >> mail_owner = postfix >> mailq_path = /usr/bin/mailq.postfix >> manpage_directory = /usr/share/man >> masquerade_domains = help.pediatrics.wisc.edu mailman.pediatrics.wisc.edu >> pediatrics.wisc.edu >> masquerade_exceptions = root >> mydestination = $myhostname, localhost.$mydomain, help.$mydomain, >> mailman.$mydomain, localhost > > so mailman.$mydomain is a local domain which will normally be delivered > via local. > >> mydomain = pediatrics.wisc.edu >> myhostname = linuxapps.pediatrics.wisc.edu >> mynetworks = 144.92.221.80 >> myorigin = $mydomain >> newaliases_path = /usr/bin/newaliases.postfix >> queue_directory = /var/spool/postfix >> readme_directory = /usr/share/doc/postfix-2.3.3/README_FILES >> recipient_delimiter = + >> relayhost = 144.92.221.80 >> sample_directory = /usr/share/doc/postfix-2.3.3/samples >> sendmail_path = /usr/sbin/sendmail.postfix >> setgid_group = postdrop >> smtp_generic_maps = regexp:/etc/mailman/generic.regexp >> unknown_local_recipient_reject_code = 550 >> virtual_alias_maps = >> hash:$config_directory/virtual,hash:/etc/mailman/virtual-mailman >> >> > > > what does virtual_mailman contain? you know that you can't use this to > execute mailman (virtual does not execute commands). virtual-mailman contains this type of stuff: [EMAIL PROTECTED] mailman [EMAIL PROTECTED] mailman-admin > > My bet is that something is causing a rewrite that you don't want. show > logs for a transaction. Here's some of the log: Sep 24 10:16:14 linuxapps postfix/smtpd[15835]: connect from strangepork.pediatrics.wisc.edu[144.92.221.80] Sep 24 10:16:14 linuxapps postfix/smtpd[15835]: 5E9A47D006E: client=strangepork.pediatrics.wisc.edu[144.92.221.80] Sep 24 10:16:14 linuxapps postfix/cleanup[15838]: 5E9A47D006E: message-id=<[EMAIL PROTECTED]> Sep 24 10:16:14 linuxapps postfix/qmgr[5669]: 5E9A47D006E: from=<[EMAIL PROTECTED]>, size=15331, nrcpt=1 (queue active) Sep 24 10:16:14 linuxapps postfix/smtpd[15835]: disconnect from strangepork.pediatrics.wisc.edu[144.92.221.80] Sep 24 10:16:14 linuxapps postfix/smtp[15839]: 5E9A47D006E: to=<[EMAIL PROTECTED]>, orig_to=<[EMAIL PROTECTED]>, relay=144.92.221.80[144.92.221.80]:25, delay=0.06, delays=0.04/0/0/0.01, dsn=2.0.0, status=sent (250 Ok: queued as 6A026A6C35C) Sep 24 10:16:14 linuxapps postfix/qmgr[5669]: 5E9A47D006E: removed Sep 24 10:16:14 linuxapps postfix/smtpd[15835]: connect from strangepork.pediatrics.wisc.edu[144.92.221.80] Sep 24 10:16:14 linuxapps postfix/smtpd[15835]: B19AA7D006E: client=strangepork.pediatrics.wisc.edu[144.92.221.80] Sep 24 10:16:14 linuxapps postfix/cleanup[15838]: B19AA7D006E: message-id=<[EMAIL PROTECTED]> Sep 24 10:16:14 linuxapps postfix/qmgr[5669]: B19AA7D006E: from=<[EMAIL PROTECTED]>, size=15958, nrcpt=1 (queue active) Sep 24 10:16:14 linuxapps postfix/smtpd[15835]: disconnect from strangepork.pediatrics.wisc.edu[144.92.221.80] Sep 24 10:16:14 linuxapps postfix/smtp[15839]: B19AA7D006E: to=<[EMAIL PROTECTED]>, orig_to=<[EMAIL PROTECTED]>, relay=144.92.221.80[144.92.221.80]:25, delay=0.06, delays=0.04/0/0/0.01, dsn=5.0.0, status=bounced (host 144.92.221.80[144.92.221.80] said: 554 Error: too many hops (in reply to end of DATA command)) Sep 24 10:16:14 linuxapps postfix/cleanup[15838]: D1E507D0070: message-id=<[EMAIL PROTECTED]> Sep 24 10:16:14 linuxapps postfix/qmgr[5669]: D1E507D0070: from=<>, size=18034, nrcpt=1 (queue active) Sep 24 10:16:14 linuxapps postfix/bounce[15842]: B19AA7D006E: sender non-delivery notification: D1E507D0070 Sep 24 10:16:14 linuxapps postfix/qmgr[5669]: B19AA7D006E: removed Sep 24 10:16:14 linuxapps postfix/smtp[15839]: D1E507D0070: to=<[EMAIL PROTECTED]>, relay=144.92.221.80[144.92.221.80]:25, delay=0.06, delays=0.05/0/0/0.01, dsn=2.0.0, status=sent (250 Ok: queued as DEF1CA6C336) Sep 24 10:16:14 linuxapps postfix/qmgr[5669]: D1E507D0070: removed -- Sterling Anderson Department of Pediatrics UW Medical School http://pediatrics.wisc.edu/ [EMAIL PROTECTED] 608.265.0664
smime.p7s
Description: S/MIME cryptographic signature