Smart questions
Smart answers
Smart people
INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Member Login

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips now!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

Join Tek-Tips
*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

LINK TO THIS FORUM!

Add Stickiness To Your Site By Linking To This Professionally Managed Technical Forum.
Just copy and paste the
code below into your site.

Partner With Us!

"Best Of Breed" Forums Add Stickiness To Your Site
Partner Button
(Download This Button Today!)

Feedback

"...It is good to know that there are groups such as this willing to share knowledge in this money driven economy..."

Geography

Where in the world do Tek-Tips members come from?
igfc (IS/IT--Management)
22 Nov 11 13:07
Hi

I am running postfix 2.8.2-1ubuntu on Ubuntu 11.04. I am using authSMTP as a mail server where all external mail gets sent. This has a restriction on it that means that the authSMTP account will only accept mail if the Envelope From address is specifically "noreply@mydomain.com"

I have a java app on a server that sends mail from a form that a user fills in.
The user enters their email address and the recipients email address and the app generates the mail for delivery and passes it to postfix.

What I want to do is simply rewrite the Envelope From to the noreply@mydomain.com and leave all other fields the same (esp the From: header)

The problemI seem to be up against is the original envelope From from the app can have any old email address in it so I need to not care about the original and just make every mail have the same envelope From.
I have tried the sender_canonical_maps and sender_canonical_classes in main.cf but no joy.

Anyone help?

Iain
 
Noway2 (Programmer)
22 Nov 11 16:34
I would have to dig into the postfix documentation to follow up on the user mapping as it has been too long since I have looked at it.

However, I am also wondering if this might be better handled in your Java app?  I assume that your app uses a mail call that effectively uses the sendmail (compatibility) command.  One of the pieces of information would be the sender.  Could you replaced the information that the user provides with the desired noreply@mydomain.com?

 

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members!

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close