General discussion

Locked

Sendmail Aliases

By C The Soup ·
I'm running Sendmail on a Red Hat server. I need to be able to route incoming internet email to a local linux mailbox AND forward it to an external email address. If I did (in /etc/aliases):

jdoe: jdoe@somewhere.net, jdoe

but...this would result in a mail loop. Is there a way to tell aliases to point to the local mail file?

I'd like to do it with /etc/aliases. But, if anyone knows of a better way (maybe using .forward?) I'll take that advice too.

Thanks in advance.

Christian

This conversation is currently closed to new comments.

3 total posts (Page 1 of 1)  
| Thread display: Collapse - | Expand +

All Comments

Collapse -

Sendmail Aliases

by cpfeiffe In reply to Sendmail Aliases

If you are going to send the mail to another server you should always do so with .forward. /etc/aliases should only be used as an alias to a local mail file. If you want all mail for jdoe to go to jdoe@somewhere.net then create a home directory for jdoe (if not already done) and in the home directory put a file (.forward) that contains one line (jdoe@somewhere.net). If you need the mail to go to two places you should also use .forward instead of /etc/aliases, even if one of the two places isa local mail file. Simply add a second line to .forward (jdoe@localhost).

I hope this will help.

Collapse -

Sendmail Aliases

by C The Soup In reply to Sendmail Aliases

Poster rated this answer

Collapse -

Sendmail Aliases

by C The Soup In reply to Sendmail Aliases

This question was closed by the author

Back to Linux Forum
3 total posts (Page 1 of 1)  

Related Discussions

Related Forums