LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
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 11-04-2010, 06:47 PM   #1
zuasive
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 www-data@domain.com 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
kbp
Senior Member
 
Registered: Aug 2009
Posts: 3,790

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

cheers
 
  


Reply



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

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

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

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
Open Source Consulting | Domain Registration