Visit Jeremy's Blog.
Go Back > Forums > Linux Forums > Linux - Server
User Name
Linux - Server This forum is for the discussion of Linux Software used in a server related context.


  Search this Thread
Old 11-04-2010, 06:47 PM   #1
LQ Newbie
Registered: Mar 2009
Location: Ohio
Distribution: ubuntu, opensuse, debian, centos
Posts: 11

Rep: Reputation: 0
Postfix/relay/alias Possible

Greetings everyone I have a doozy or at least it seems like one to me. I'm by no means an expert but I don't think I'm a novice either, anyway heres my setup.

Ubuntu 9.04
Apache2 webserver (multiple virtual domains)
postfix (successfully configured to relay to my gmail hosted email)
Websites that email

Alright the problem is after getting all this configured because the spam police don't like email coming from a dynamic IP (yes I'm that cheap not to by a static IP), when someone registers or purchases something the from: address is the relay account. Is there a way to configure postfix to change the outgoing address to the one belonging to the domain/website it is generated from?

I see in the logs the generic but it's always changed.

In gmail I have configured the domain alias so the account has multiple aliases there to send to or from. (ex: sales, support, etc.)

In summary:
Multiple websites/domains
Outside email hosting - gmail
Relaying configured successfully (partially)

Can I configure postfix to change the outgoing address to the proper website/domain it is coming from? Gmail has been configured with the aliases.

Thanks for taking the time to read this.
Old 11-04-2010, 07:02 PM   #2
Senior Member
Registered: Aug 2009
Posts: 3,790

Rep: Reputation: 650Reputation: 650Reputation: 650Reputation: 650Reputation: 650Reputation: 650
It would be a lot simpler to relay all outbound mail through your ISP's mail servers, 'postconf -e "relayhost = [mailserver.isp.tld]"



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 Relay Getting Spammed Bad -- But no open relay... ihod2008 Linux - Server 1 07-26-2008 08:24 PM
postfix alias domains csaunders Red Hat 1 04-17-2007 11:44 AM
Postfix Alias Problem irishred Linux - Server 3 01-16-2007 02:12 PM
Postfix as a mail relay (getting relay access denied) hypexr Linux - Software 3 09-13-2005 07:15 PM
relay postfix SkYzOpReNiCk Linux - Networking 5 01-22-2002 10:32 AM > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 10:48 AM.

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