LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
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
 
LinkBack Search this Thread
Old 08-16-2006, 09:41 PM   #1
gurl4sh25
Member
 
Registered: Apr 2006
Distribution: SuSE, RedHat, Fedora, CentOS, BSD
Posts: 115

Rep: Reputation: 15
Problem in relaying outbound mails for specific smtp


Hi Guys,

I have this client, and they have a Postfix Email Server, this client wants to make all outbound mails for the domain aol.com to relay on this specific smtp server (an smtp relay server that is located on their backup ISP provider). One problem is that they do not want to relay other outbound mails such as yahoo.com or gmail.com for this smtp.

The reason they want to do this is that Aol does not allow to accept their mails that are comming from our clients postfix server unless it comes from their smtp relay that are located in their backup ISP provider.

Any idea on how to do this?


Regards,
gurl4sh25
 
Old 08-17-2006, 02:58 AM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,345

Rep: Reputation: 1945Reputation: 1945Reputation: 1945Reputation: 1945Reputation: 1945Reputation: 1945Reputation: 1945Reputation: 1945Reputation: 1945Reputation: 1945Reputation: 1945
http://www.postfix.org/transport.5.html
 
Old 08-31-2006, 10:44 PM   #3
gurl4sh25
Member
 
Registered: Apr 2006
Distribution: SuSE, RedHat, Fedora, CentOS, BSD
Posts: 115

Original Poster
Rep: Reputation: 15
Hi acid_kewpie,

I do think that transport_maps are only used for intranet, what im trying to figure is how can i relay it in a public IP smtp relay (internet)?

thanks,
gurl4sh25
 
Old 08-31-2006, 11:39 PM   #4
Zepiroth
Member
 
Registered: May 2003
Location: Surabaya, Jawa Timur, Indonesia
Distribution: Ubuntu LTS Servers, Redhat Server Administrators and Solaris 10 Newbie
Posts: 56

Rep: Reputation: 15
Wink

dear gurl4sh25,

edit /etc/transport. add this line
aol.com relay:[<your SMTP fqdn>]

edit main.cf add/edit this line :
transport_maps = hash:/etc/postfix/transport

adjust the path accordingly.

then run on the command prompt :
# postmap transport
# postfix reload

to check the relaying works :
send an email to aol.com while executing this line on the linux :
# tail /var/log/maillog -f

a line like this will show ( this line is example only ) :
Sep 1 11:15:31 dms postfix/smtp[28951]: 8AE51110C0A: to=<abc@aol.com>, relay=<your SMTP fqdn>, delay=9, status=sent (250 2.0.0 k814FK7p012667 Message accepted for delivery)

It works on my PostFix.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Blocking mails from specific email addresses/domains in postfix jomy Linux - Networking 1 07-15-2008 08:32 PM
backup all e-mails (smtp/pop3) stomach Linux - Software 3 11-01-2005 11:32 AM
smtp relaying is prohibited sami Linux - Networking 4 04-06-2004 09:14 AM
SMTP: multiple mails with one connection? Titus Programming 2 07-19-2002 12:37 PM
How do I auto delete mails from a specific domains/users? markng Linux - Security 4 05-02-2002 10:41 PM


All times are GMT -5. The time now is 07:19 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration