Hi

We are using Mandrake 9.2 & postfix. Where can I change the mail
routing...../etc/postfix/main.cf or /etc/postfix/transport? I have the next setting in the /etc/postfix/main.cf:

# TRANSPORT MAP
#
# Insert text from sample-transport.cf if you need explicit routing.
transport_maps = hash:/etc/postfix/transport

Must I add something in /etc/postfix/transport? Please advice.

Thx

Add this lines to /etc/postfix/transport

domain.com :
.domain.com :
* smtp:[host.domain.com]


line1: domain.com should refer to your domain.
line2: dont forget the dot at the begining.
line3: the host is the name of your linux-box host name.


after adding this lines execute this command:

postmap /etc/postfix/transport
(this adds the lines added in /etc/postfix/transport to transport.db)

then restart the postfix

/etc/init.d/postfix reload

(last command may be different in various linux distros)

useful logs may be founded in /var/log/mail
mail.err
mail.warn

and very good documentation on www.postfix.com

correction:
the format of lines should be like that:

domain.com           :                                               ( domain.com TAB :)
.domain.com          :                                               ( .domain.com TAB :)
*                             smtp:[host.domain.com]         ( * TAB smtp:.....)

correction:
the format of lines should be like that:

domain.com           :                                               ( domain.com TAB :)
.domain.com          :                                               ( .domain.com TAB :)
*                             smtp:[host.domain.com]         ( * TAB smtp:.....)

Hi Slacke
Thank you very much, it worked.:cheesy:

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.