LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 04-14-2008, 09:03 PM   #1
kngspook
LQ Newbie
 
Registered: Apr 2008
Distribution: Gentoo, Ubuntu, or whatever is at hand.
Posts: 4

Rep: Reputation: 0
SMTP Outgoing Routing


I'm about to set up my first mail server (ever), for personal use; it will offer IMAP and SMTP services (ideally with SSL). I haven't decided on what software to use; that will largely depend on your advice.

But there's one, perhaps peculiar, customization I want to set up: I have a couple email addresses that I use, a few of them Gmail addresses, which I was going to forward to my account on my mail server. What I wanted to do was to set up my SMTP server in such a way that when it receives an email with one of my Gmail addresses as the From-Address, I want it to resend the email through Gmail's SMTP servers, so a copy of the email will be stored there.

The only problem is I have no idea what software can do this. Google turned up nothing for me. Any ideas?

Thanks.
 
Old 04-14-2008, 09:11 PM   #2
billymayday
Guru
 
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678

Rep: Reputation: 122Reputation: 122
Not 100% sure I follow you, but I think you'll find postfix can do this with per user transport maps
 
Old 04-14-2008, 09:42 PM   #3
kngspook
LQ Newbie
 
Registered: Apr 2008
Distribution: Gentoo, Ubuntu, or whatever is at hand.
Posts: 4

Original Poster
Rep: Reputation: 0
Well, let me give an example of how I want it to work; maybe that would help make sense of it:

Scenario 1:
I send a mail from "me@example.com" to "someone@somewhere.com" with my server set as the SMTP server. My server takes the mail, and routes it to somewhere.com normally.

Scenario 2:
I send a mail from "me@gmail.com" to "someone@somewhere.com" with my server set as the SMTP server. My server, noting that "me@gmail.com" is one of the from addresses I instructed it to handle specially, does not route it to "someone@somewhere.com". Instead, it signs on to Gmail's SMTP servers, and sends it as if I sent it.

Does that make sense?
 
Old 04-14-2008, 10:10 PM   #4
billymayday
Guru
 
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678

Rep: Reputation: 122Reputation: 122
OK. How about http://www.postfix.org/postconf.5.ht...relayhost_maps, although I've never tried this parameter myself.

http://linux.derkeiler.com/Mailing-L.../msg02843.html may help

Last edited by billymayday; 04-14-2008 at 10:26 PM. Reason: Tidying up
 
  


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
Setup outgoing mail to Yahoo smtp using command line trigggl Linux - Server 2 03-11-2008 02:06 AM
Passing outgoing SMTP traffice through IPCop Firewall without tagging IP Address Firehawk335 Linux - Security 3 01-03-2007 01:00 PM
How do I configure Postfix to save my outgoing SMTP mail in my IMAP "Sent Items"? wired Linux - Newbie 1 02-01-2006 12:12 AM
How to implement a SMTP server for outgoing mail? Nerox Programming 1 07-02-2004 03:43 AM
Routing outgoing mail on a dual external interface system with sendmail Dewar Linux - Networking 5 11-19-2003 03:42 PM


All times are GMT -5. The time now is 05:09 AM.

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