LinuxQuestions.org
Help answer threads with 0 replies.
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 07-02-2008, 12:48 PM   #1
gabsik
Member
 
Registered: Dec 2005
Location: This planet
Distribution: Debian,Xubuntu
Posts: 567

Rep: Reputation: 30
Question Split postfix sender mail traffic


I run debian etch and i want my postfix to split outgoing emails by sender envelope . If the sender it's a local user , the traffic has to go through gmail smtp , if it is my local mixmaster remailer i don't want it to go through gmail .
 
Old 07-02-2008, 04:29 PM   #2
Mr. C.
Senior Member
 
Registered: Jun 2008
Posts: 2,529

Rep: Reputation: 63
With postfix >= 2.3, man 5 postconf. See sender_dependent_relayhost_maps.
 
Old 07-04-2008, 04:39 PM   #3
gabsik
Member
 
Registered: Dec 2005
Location: This planet
Distribution: Debian,Xubuntu
Posts: 567

Original Poster
Rep: Reputation: 30
My smtp is configured to send mail through gmail with the relayhost directive . System users are going to use it to see mail delivered to their final recipient . Remailer users are going to use still my smtp (it's the only avialable) and , because the above directive , they will go through gmail .
Now , if i comment out the above relayhost , and instead i use :
Quote:
sender_dependent_relayhost_maps = hash:/etc/postfix/sender_relayhost
smtp_sasl_auth_enable = yes
smtp_sasl_password_maps = hash:/etc/postfix/smtp_relayhost_auth
smtp_sasl_security_options = noanonymous
smtp_sender_dependent_authentication = yes
With /etc/postfix/sender_relayhost having this inside:
Quote:
system@user [smtp.gmail.com]
remailer@user [smtp.mysystem.it]
and smtp_relayhost_auth having
Quote:
system@user mygmailaccount@gmail.com:mypassword
remailer@user mysmtpremaileruser@mysystemassword
Did i manage to split outgoing emails as desired ???? Would smtp.mysystem.it stop using gmail if user is remailer user ???
Am i correct ????
 
Old 07-04-2008, 06:07 PM   #4
Mr. C.
Senior Member
 
Registered: Jun 2008
Posts: 2,529

Rep: Reputation: 63
Test it out and see if it works. Watch your logs, checking the smtp line for relay=xxx, to see that it works as you desire.
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
POSTFIX how to block/delete mail from sender... hct224 Linux - Newbie 5 12-29-2009 10:11 PM
postfix block sender ip csdhiman Linux - Server 3 08-07-2007 10:08 AM
Postfix, relay sender restriction barghota Linux - Software 1 09-13-2006 02:24 PM
Postfix Bounce Mail To sender when error is found heero82 Linux - Software 1 10-14-2005 03:46 PM
server side anti virus for mail traffic; postfix as mta markus1982 Linux - Software 4 03-09-2003 09:17 AM

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

All times are GMT -5. The time now is 05:11 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration