Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > Linux Forums > Server Operation

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 29th July 2008, 08:00
gabrix gabrix is offline
Senior Member
 
Join Date: Sep 2006
Location: Napoli
Posts: 186
Thanks: 2
Thanked 0 Times in 0 Posts
Send a message via MSN to gabrix Send a message via Yahoo to gabrix Send a message via Skype™ to gabrix
Exclamation postfix realyhost question

Hi!
I have my local postfix using smtp.gmail.com as relayhost.
I have also a list of senders from different domains i want to use my local postfix.
While for local users in $myorigin i want postfix to use gmail , for users in the list i want my postfix to send straight to the recipent not using gmail.com.
I hope i was clear thanks !
__________________
http://www.gabrix.ath.cx
Reply With Quote
Sponsored Links
  #2  
Old 30th July 2008, 13:57
topdog topdog is offline
Senior Member
 
Join Date: Jan 2008
Location: South Africa
Posts: 1,352
Thanks: 0
Thanked 153 Times in 150 Posts
 
Default

you may be able to use the sender_dependent_relayhost_maps feature of postfix, am not so sure if it will work with your setup but it works if you want users to use different relayhosts, am guessing if you leave relayhost blank and the lookup does not find the address in the file it will deliver directly but YMMV

Sample lookup file will look like this

Code:
user1@example.com           [mail.example.com]
user2@example.net           [mail.example.net]
__________________
----
http://www.topdog.za.net - Got Linux problems ? - I can help.
http://www.baruwa.org - Try it.
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Virtual Users With Postfix, PostfixAdmin, Courier, Mailscanner,Mailwatch CentOS 5.2 tecstream HOWTO-Related Questions 3 16th July 2008 22:10
Mail System Error - Returned Mail tristanlee85 General 16 16th March 2008 09:40
Upgrade question for "Virtual Users And Domains With Postfix, Courier And MySQL" emresumengen HOWTO-Related Questions 3 1st December 2006 15:33
Centos 4.4 32bit Hangs, High Server load 3cwired_com Server Operation 11 16th November 2006 15:47
Verify email setup meekish Installation/Configuration 28 27th October 2006 15:36


All times are GMT +2. The time now is 07:44.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.