Hi friends I need to setup two relay-hosts hosts for the two domains that we are using.
The first one 'our_domain.tld' - this is working fine on dbmail + postfix. I have an old domain 'our_old_domain.tld' which will be terminated shortly. But for the time being I need to route all the mails for both these through dbmail. I want all the mails from both domains to go through the dbmail-mysql database. relay for the 'our_domain.tld' worked fine using the following in /etc/postfix/main.cf relayhost = [smtp.our_domain.tld] I want the mails from '[EMAIL PROTECTED]' to be relayed through 'smtp.our_old_domain.tld'. I was fiddling with /etc/postfix/transport. It is as follows. our_domain.tld dbmail-lmtp:localhost:24 our_old_domain.tld relay:[smtp.our_old_domain.tld] I commented out #relayhost = [smtp.our_domain.tld] But now postfix is trying direct delivery to the destinations despite the above transport. I tried disabling #transport_maps = hash:/etc/postfix/transport Strange thing is that dbmail is working fine for local delivery w/o any problems! Only that it does direct delivery! Next I tried adding sender_dependent_relayhost_maps = hash:/etc/postfix/sender_relay with /etc/postfix/sender_relay as follows:- our_old_domain.tld smtp:[smtp.our_old_domain.tld] But when giving postconf -n , this entry is not shown in the listing at all. ghost:~# postconf -n always_bcc = rambo command_directory = /usr/sbin config_directory = /etc/postfix daemon_directory = /usr/libexec/postfix debug_peer_level = 2 disable_dns_lookups = yes html_directory = no inet_interfaces = all local_recipient_maps = mail_owner = postfix mailbox_transport = dbmail-lmtp:localhost:24 mailq_path = /usr/bin/mailq manpage_directory = /usr/local/man mydestination = $myhostname, localhost.$mydomain, localhost, $mydomain mydomain = our_domain.tld myhostname = mailserver.our_domain.tld mynetworks_style = subnet myorigin = $mydomain newaliases_path = /usr/bin/newaliases queue_directory = /var/spool/postfix readme_directory = no relay_domains = $mydestination sample_directory = /etc/postfix sendmail_path = /usr/sbin/sendmail setgid_group = postdrop smtp_generic_maps = hash:/etc/postfix/generic smtp_sasl_auth_enable = yes smtp_sasl_password_maps = hash:/etc/postfix/sasl_passwd smtp_sasl_security_options = unknown_local_recipient_reject_code = 550 ghost:~# What should i do to get the relayhosts to work? regards Nataraj
