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 Wizards Needed!
Author: el_kab0ng 
Date:   18-12-01 07:27

ok... here we go with a lengthy description...

I have the following three servers:

server.com
server1.server.com
mail.server.com

I want mail.server.com to handle all incoming and outgoing mail for server1.server.com. I have sendmail set up to masquerade any user on server1.server.com as user@server.com.

I can send mail via mail.server.com, but when replying to user@server.com, I keep getting user unknown errors.

I thought I could swing it with virtusertables (user@server.com user@server1.server.com) but that didn't work.

I even went so far as to try aliases on mail.server.com, with no luck.

Can sendmail do smart routing like I want?

server1 -> mail -> world
world -> mail -> redirect based on "to" -> server1

confused yet?

I run sendmail 8.11 on FreeBSD 4.4-RELEASE

Reply To This Message
 
 Re: Sendmail Wizards Needed!
Author: el_kab0ng 
Date:   18-12-01 08:36

Actually, after further review... here's some additional info..

The ASCII "flow chart" would be better represented by this:

user@server1 -> mail -> world (outbound mail from server1 relays through mail)

world -> user@web -> mail <- users (users having a "real" account on the mail server)

world -> user@web -> mail -> user@server1 <- users (users who have an account on server1, but are masqueraded as @web email addresses, yet don't have "real" accounts on the mail server.

where the following conditions are met:

web == 1 machine handling all web and directing any @web email addresses to mail.

mail == 1 machine handling all mail for both web and server1.

server1 == 1 shell box with a subdomain masqueraded as @web email accounts.

Reply To This Message
 
 Re: Sendmail Wizards Needed!
Author: Dan Larsson 
Date:   19-12-01 11:23

You need the domain "server.com" in your
"/etc/mail/local-domains" (this is the file which previously went
by the name "/etc/sendmail.cw") file alternatively add the feature "virtuser-entire-domain" to your sendmail.mc file and rebuild your sendmail.cf.

You might also find the use for "mailbox-tables". Which allows
you to split a domain based mail route to specific servers
depending on the userid, this is IIRC a hack not distributed with
sendmail so you'll have to do a search on Google or whatever to
find out more on this.

Doing a "sendmail -bv user@server.com" from the commandline
should tell you right away if sendmail knows how to handle emails
sent to that particular user.

Alternatively try setting up a mailertable entry, which would
look something like this:

"server.com relay:[server1.server.com]"

This will tell sendmail to relay mail for the entire domain "server.com" to the server "server1.server.com". This combined
with a mailbox-table might get you a push in the right direction.

Good luck!

/D

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