The FreeBSD Diary

The FreeBSD Diary (TM)

Providing practical examples since 1998

If you buy from Amazon USA, please support us by using this link.
[ HOME | TOPICS | INDEX | WEB RESOURCES | BOOKS | CONTRIBUTE | SEARCH | FEEDBACK | FAQ | FORUMS ]
FreeBSD Support
 New Topic  |  Go to Top  |  Go to Topic  |  Search  |  Log In   Newer Topic  |  Older Topic 
 Sendmail question
Author: heathy 
Date:   05-12-05 21:52

I followed this entry http://www.freebsddiary.org/virtualmail.php and it works, but only for people sending mail that use that server for sending mail. What I want is all mail being relayed through the server,ie mail being send from another mail server I control, to have it's reply-to address changed to say @blah.com instead of @super.blah.com.

Is there a way to make sendmail do this?

Thanks

Reply To This Message
 
 Re: Sendmail question
Author: halber_mensch 
Date:   06-12-05 19:13

I'm not sure I understand the question.. let me see if I've got the right idea...

You have a relay system named foo.baz.com.
You have a mta system named bar.baz.com.

The bar.baz.com mta relays through foo.baz.com, and you want the delivered mail to appear as though it is coming from joe@baz.com instead of joe@bar.baz.com.

Is this right?

Reply To This Message
 
 Re: Sendmail question
Author: heathy 
Date:   06-12-05 19:21

Yes correct, I did find the answer and got it working. Here is what you need to do...


Add this to the MC file:

GENERICS_DOMAIN_FILE(`-o /etc/mail/genericdomains')
FEATURE(genericstable,`hash -o /etc/mail/genericstable')
FEATURE(generics_entire_domain)

Create a genericdomains file and put in the domain of the server that send mail is relaying for you. In your example bar.baz.com.

Create a genericstable file containing:
joe@bar.baz.com joe@baz.com

Do the /usr/sbin/makemap -v hash /etc/mail/genericstable < /etc/mail/genericstable to make the database.

Do the steps to make these new settings to stick and it should work.

Reply To This Message
 Forum List  |  Threaded View   Newer Topic  |  Older Topic 


 Forum List  |  Need a Login? Register Here 
 User Login
 User Name:
 Password:
 Remember my login:
   
 Forgot Your Password?
Enter your email address or user name below and a new password will be sent to the email address associated with your profile.
How to get the most out of the forum

phorum.org