Link to home
Start Free TrialLog in
Avatar of slands10
slands10

asked on

Postfix - Configuring a 'do-not-reply@domain.com' address

Hi, I am having trouble configuring a 'do-not-reply' address for outgoing mail using Postfix on RHEL.  The purpose is a php form contained within a website on the server, which will email respondants to the form upon completion.  I have now managed to allow the mail to be relayed to our mail server which allows it to go outbound, and have also configured the domain from which the mail looks like it is sent.  My problem is that I cannot find a way to change the user from 'apache @' to 'do-not-reply@'.  I have read that aliases can be used, but this seems a little complex for the purpose.
There are other websites on the server which I do not want to impact, although as far as I know they will not have any reliance on Postfix.
If anyone can point me in the right direction it would be greatly appreciated, thanks!
ASKER CERTIFIED SOLUTION
Avatar of hernst42
hernst42
Flag of Germany image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of slands10
slands10

ASKER

Hi hernst42,
Many thanks for your prompt reply, 5pm is quickly approaching so I may leave this until the morning to try, I will report back with results if it works or not, thanks again!
Hi guys, still having a little trouble with this..  I am unsure whether I should edit the php.ini file, specifically append something to the line: sendmail_path = /usr/sbin/sendmail -t -i, or should all configuration be performed in the postfix main.cf file?  
In my original post I voiced concerns regarding having a 'knock-on' effect to the other websites on the server, I am looking to make a local config change which will only affect a particular set of php forms for one website, which has made me think I should be looking to the php developer to include this 'do-not-reply' address in the actual php code for the forms..  I hope this is clear!  
Any pointers would be much appreciated, thanks for your time and help!

*Sorry for repeat posting*
Hi, I thought I should actually describe the problem I am having a little better - my mails are getting delivered as 'apache@server.bb.slands.com'
I have changed the $mydomain perameter to be '@slands.com'
which gives me emails coming from '"apache @" @slands.com'

I'm trying to get the mails to come from 'do-not-reply@slands.com', but having no luck!  I have tried the following methods, perhaps not 100% correctly..
Using Aliases,
Using address masquerading
Using manipulated extra headers
Using smtp_generic_maps
Using masquerade_domains
Using sender_canonical_maps

and also hernst42's suggestion, although I am unsure I applied this correctly..

None of the methods above seem to have made a difference to the outgoing mail, even if I remove my previously defined mydomain = @slands.com.

Any help would be very much appreciated, thanks folks :)