954,089 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

Mail Routing

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
[EMAIL="morne@medway.co.za"][/EMAIL]

morned
Newbie Poster
3 posts since Oct 2006
Reputation Points: 10
Solved Threads: 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

slacke
Junior Poster
106 posts since Jun 2006
Reputation Points: 14
Solved Threads: 7
 

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:.....)
slacke
Junior Poster
106 posts since Jun 2006
Reputation Points: 14
Solved Threads: 7
 

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:

morned
Newbie Poster
3 posts since Oct 2006
Reputation Points: 10
Solved Threads: 0
 

This question has already been solved

Post: Markdown Syntax: Formatting Help
You
View similar articles that have also been tagged: