0

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

2
Contributors
3
Replies
4
Views
11 Years
Discussion Span
Last Post by morned
0

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

0

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:.....)
0

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:

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.