LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 06-26-2013, 04:27 AM   #1
amilauduwerella
Member
 
Registered: Feb 2009
Distribution: Debian
Posts: 57

Rep: Reputation: 17
Need to change "return-path" on server generated mails


I have few websites running on the same server, and all these sites has some email function, When ever they send email, its return path is set to www-data@localhost.localdomain

Is there a way to change it, so that each website send a mail its return-path is set according to the site domain name?

for www.abc.com mail return path is xx@abc.com
and for www.xyz.com mail return path is xx@xyz.com
?
Thanks.
 
Old 06-26-2013, 07:26 AM   #2
TenTenths
Senior Member
 
Registered: Aug 2011
Location: Dublin
Distribution: Centos 5 / 6 / 7
Posts: 3,475

Rep: Reputation: 1553Reputation: 1553Reputation: 1553Reputation: 1553Reputation: 1553Reputation: 1553Reputation: 1553Reputation: 1553Reputation: 1553Reputation: 1553Reputation: 1553
You don't mention what MTA you are using.
You don't mention what webserver you are using.
You don't mention what application (if any) your websites are using.

So now that you've given us nothing much to go on:

In general you should be able to add the user that apache runs under to an "approved sender" list and then check what your websites actually use to send mail. If you're using some form of off-the-shelf CMS or site framework it should be possible to set the originator e-mail through that.

Could try the following in the website .htaccess and see how you get on.
Code:
php_value sendmail_from -fxx@abc.com
 
  


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
Automatic "Server maintenance" reply e-mails? mmyles Linux - Server 3 05-15-2013 10:46 AM
sendmail server not sending mails to domain with "-" hyphen jatinkumar Linux - Server 4 03-01-2012 01:22 AM
How to configure postfix to reject mails having invalid return path badboynick21 Linux - Server 17 09-14-2010 12:28 PM
Problem "$value=`mpstat 1 1 | grep "Average"`;" Alias pipe return nothing adamlucansky Linux - General 8 09-25-2009 07:26 AM
How to check "incorrect mails" before sending it through my mail server? nishith Linux - Server 2 04-21-2009 07:47 AM

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

All times are GMT -5. The time now is 06:36 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