LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 03-22-2012, 12:09 AM   #1
senthilvael
Member
 
Registered: Nov 2007
Posts: 73

Rep: Reputation: 17
Smile Post fix smtproutes


We are having a webserver (mydomain.com) with apache and postfix. The mails originating from this server sometimes reaches to the spam folder of recipients. To avoid this, we have purchased a relay server. I configured it in the postfix. Now the mails originating from the websever is sent out via relay server. we can send 30K mails via the relay server per month. While analyzing this, half of the emails sent are to user@mydoamin.com. So I am thinking of routing the emails sent to mydomain.com to my mail server and rest of the emails are sent out via relay server. I know that we can do this via /etc/postfix/transport file.

my main.cf is having this entry for general routing

relayhost = [smtp.relayserver.com]:587

It does not having entry for transport file.
Can you please help me to include the transport file to main.cf and configure it to forward email to mydomain to my mail server. Even a good link is enough for me configure. THanks in advance.
 
Old 04-03-2012, 10:00 PM   #2
hydraMax
Member
 
Registered: Jul 2010
Location: Skynet
Distribution: Debian + Emacs
Posts: 467
Blog Entries: 60

Rep: Reputation: 51
According to The Book of Postfix a transport map entry is like:

Code:
example.com smtp:[mail.office.example.com]
You process the map file with:

Code:
postmap hash:/etc/postfix/transport
and the main.cf paramter that specifies the transport map is:

Code:
transport_maps = hash:/etc/postfix/transport
However, In the book this is in the context of configuring /the gateway/, not the originating mail server (after setting the relay_domains parameter) so I'm not sure exactly this works in your situation, without looking into it some more. Perhaps studying the TRANSPORT(5) man page will shed some more light on it:

http://www.postfix.org/transport.5.html
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Post fix pawan_lal Linux - Server 2 03-23-2009 09:55 AM
qmail and smtproutes ille.pugil42 Linux - Software 1 09-21-2007 03:15 PM
Post fix install tommytomato Ubuntu 2 06-09-2007 09:59 AM
Post fix tommytomato Linux - Software 6 06-08-2007 09:15 AM
using post fix with a static ip eobrieniv Linux - Newbie 2 08-20-2003 09:46 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 12:54 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration