Operating System - Linux
1752653 Members
5884 Online
108788 Solutions
New Discussion юеВ

Re: sendmail and groupwise marriage

 
SOLVED
Go to solution
manny_9
Frequent Advisor

sendmail and groupwise marriage

Redhat 9.0 ES

I am trying to merge external and internal email.

Currently redhat 9 es with sendmail is my external email.

Groupwise 6.5 is the internal.

Desktops are windows 98/2000.

My questions are....
some external address names are different than the internal addresses.

Do I have to change all the adresses to match up with groupwise adresses or is there a way to alias them from the linux box???

Lastly, where in the world on the linux box do I forward the mail to groupwise/

Thanks in advance!!
2 REPLIES 2
Steven E. Protter
Exalted Contributor
Solution

Re: sendmail and groupwise marriage

There is a file called /etc/aliases in Linux.

The format is:

id1: alias
id2: alias@aol.com
id3@servername.com: alias@hotmail.com

The examples I provide are illustrative.

mail for id1 on the Linux box is routed to the local id alias

mail for id2 is forwarded to alias@aol.com

mail for id3@servename.com is forwarded to alias@hotmail.com

There is a tab between the colon and the alias target address.

With this kind of configuration you can forward mail to compensate for the groupwise issues.

You should restart the sendmail daemon if its being run daemonized on the Linux box.

service sendmail restart

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Stuart Browne
Honored Contributor

Re: sendmail and groupwise marriage

You can use one of two methods:

/etc/aliases
/etc/mail/virtusertable

You can flat-alias users to their group-wise-internal names in the /etc/aliases file. This will just forward the messages on. An entry for each user will need to be made (read: long and painful to maintain over time).

If most of the names are the same however, just a few are different, then it's probably eaiser to use the virtusertable. This gives you the ability to selectivly map entire domains to have different actions, for instance:

@your.domain.com %1@groupwise-internal

would forward all mail to the groupwise internal machine. You could so selective mappings here as well for those users who have different names.

http://www.sendmail.org/virtual-hosting.html is a good reference here (section 4 onwards).

Hope this helps.

NOTE: Neither of these methods would require the Linux box to have accounts for your mail users.
One long-haired git at your service...