On Thu, Jul 31, 2008 at 7:05 PM, Ralf Hildebrandt
<[EMAIL PROTECTED]> wrote:
> * RSCL Mumbai <[EMAIL PROTECTED]>:
>> Hi
>>
>> I have setup my first Postfix on Fedora Core 9.
>> The installation was very simple and the MTA is working fine.
>>
>> My MailServer is actually a "relay" server for all our group domains.
>>
>> I need to setup Postfix such that it will forward all emails to their
>> respective hosts for delivery.
>>
>> For example:
>> all emails recd from [EMAIL PROTECTED] must be forwarded to mail.domian-1.com
>> all emails recd from [EMAIL PROTECTED] must be forwarded to mail.domian-2.com
>> all emails recd from [EMAIL PROTECTED] must be forwarded to mail.domian-3.com
>
> Use sender_dependent_relayhost_maps
>

I have done this:
------------------------
[EMAIL PROTECTED] postfix]# postconf -n
alias_database = hash:/etc/aliases
alias_maps = hash:/etc/aliases
command_directory = /usr/sbin
config_directory = /etc/postfix
daemon_directory = /usr/libexec/postfix
data_directory = /var/lib/postfix
debug_peer_level = 2
html_directory = no
inet_interfaces = localhost
inet_protocols = all
mail_owner = postfix
mailq_path = /usr/bin/mailq.postfix
manpage_directory = /usr/share/man
mydestination = $myhostname, localhost.$mydomain, localhost
newaliases_path = /usr/bin/newaliases.postfix
queue_directory = /var/spool/postfix
readme_directory = /usr/share/doc/postfix-2.5.1/README_FILES
sample_directory = /usr/share/doc/postfix-2.5.1/samples
sender_dependent_relayhost_maps = hash:/etc/postfix/sender_dependent_relayhost
sendmail_path = /usr/sbin/sendmail.postfix
setgid_group = postdrop
smtp_sasl_auth_enable = yes
smtp_sasl_password_maps = hash:/etc/postfix/smtp_auth
smtp_sasl_security_options = noanonymous
smtp_sender_dependent_authentication = yes
smtp_use_tls = yes
unknown_local_recipient_reject_code = 550
-------------------

What should be the construction of "sender_dependent_relayhost" in
context to my requirement ?
I searched on google but could not find much help.


I tried this:
mail.domain-1.com  main.domain-1.com
mail.domain-2com  main.domain-2.com


It did not work. I know this was a stupid try...


Please advice.

Thx
Vai

Reply via email to