OSEC

Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com
Re: sender_dependent_relayhost_maps on Postfix 2.4.0

From: Robert Schetterer (robertschetterer.org)
Date: Tue Jul 03 2007 - 05:40:44 CDT


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Mark Watts schrieb:
> I'm trying to get sender_dependent_relayhost_maps working so that I can relay mail <from> a particular domain through another server.
> When I use the config below, I get the following in my mail logs:
>
>
> ==> errors <==
> Jul 3 11:15:02 mwatts.eris.qinetiq.com postfix/smtp[30137]: fatal: unknown service: [128.98.10.175]/tcp
>
> ==> info <==
> Jul 3 11:15:02 mwatts.eris.qinetiq.com postfix/smtpd[30133]: connect from localhost[127.0.0.1]
> Jul 3 11:15:02 mwatts.eris.qinetiq.com postfix/smtpd[30133]: B690429E54: client=localhost[127.0.0.1]
> Jul 3 11:15:02 mwatts.eris.qinetiq.com postfix/cleanup[30136]: B690429E54: message-id=<200707031115.02457.foofoo.eris.qinetiq.com>
> Jul 3 11:15:02 mwatts.eris.qinetiq.com postfix/qmgr[29863]: B690429E54: from=<foofoo.eris.qinetiq.com>, size=548, nrcpt=1 (queue active)
> Jul 3 11:15:02 mwatts.eris.qinetiq.com postfix/smtpd[30133]: disconnect from localhost[127.0.0.1]
> Jul 3 11:15:03 mwatts.eris.qinetiq.com postfix/error[30138]: B690429E54: to=<m.wattslinux-corner.info>, relay=none, delay=1, delays=0.01/1/0/0.01, dsn=4.3.0, status=deferred (unknown mail transport error)
>
> ==> warnings <==
> Jul 3 11:15:03 mwatts.eris.qinetiq.com postfix/qmgr[29863]: warning: private/smtp socket: malformed response
> Jul 3 11:15:03 mwatts.eris.qinetiq.com postfix/qmgr[29863]: warning: transport smtp failure -- see a previous warning/fatal/panic logfile record for the problem description
> Jul 3 11:15:03 mwatts.eris.qinetiq.com postfix/master[29224]: warning: process /usr/lib/postfix/smtp pid 30137 exit status 1
> Jul 3 11:15:03 mwatts.eris.qinetiq.com postfix/master[29224]: warning: /usr/lib/postfix/smtp: bad command startup -- throttling
>
> /etc/postfix/sender_maps:
> foofoo.eris.qinetiq.com 128.98.10.175
>
> I've also tried:
> foofoo.eris.qinetiq.com smtp:[128.98.10.175]
>
> What am I doing wrong?
>
>
> postconf -n:
> command_directory = /usr/sbin
> config_directory = /etc/postfix
> daemon_directory = /usr/lib/postfix
> delay_warning_time = 4h
> forward_path = $home/.forward
> home_mailbox = Maildir/
> html_directory = /usr/share/doc/postfix-2.4.0/html
> inet_interfaces = all
> mail_owner = postfix
> mailbox_size_limit = 1024000000
> mailq_path = /usr/bin/mailq
> manpage_directory = /usr/share/man
> message_size_limit = 102400000
> mydestination = localhost $myhostname
> myhostname = mwatts.eris.qinetiq.com
> mynetworks_style = host
> newaliases_path = /usr/bin/newaliases
> queue_directory = /var/spool/postfix
> readme_directory = /usr/share/doc/postfix-2.4.0/README_FILES
> relayhost = 128.98.2.2
> sample_directory = /etc/postfix
> sender_dependent_relayhost_maps = hash:/etc/postfix/sender_maps
> sendmail_path = /usr/sbin/sendmail.postfix
> setgid_group = postdrop
> smtpd_banner = $myhostname ESMTP $mail_name ($mail_version) (Mandriva Linux)
> smtpd_sasl_path = smtpd
> unknown_local_recipient_reject_code = 550
>
>
hi,
i use

maildomainname servername

i.e.

example.com serverrelay.example.net

in sender_dependent_relayhost_maps

this works like charme
- --
Mit freundlichen Gruessen
Best Regards

Robert Schetterer

https://www.schetterer.org
Germany
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (GNU/Linux)
Comment: Using GnuPG with SUSE - http://enigmail.mozdev.org

iD8DBQFGiiesfGH2AvR16oERAjf1AJ9ZqQc9Z3vG5N0XXKEItJs6MUwxRwCfRDLf
Hmv+Tk9a9rktJr0LlFWLNwA=
=gO5e
-----END PGP SIGNATURE-----