Ok 

first of all I got it wrong sorry---replace /etc/mail/access
with /etc/mail/mailertable file below.  

Secondly I got interested and got mixed 
success on testing---read on for discussion.

Yes that config is for your relay.  I'm assuming
that mail1 and mail2 are internal mail servers 
to your domain.

Also many things need to happen:
  
  - if using the virtusertable method, make sure
    you have this feature enabled in sendmail.
    (feel free to ask for asistance if needed)
  - in your example, mail1.domain.com  and 
    mail2.domain.com should be the configured
    to process mail for domain.com.  (otherwise
    it would reject the mail).  If not then
    at least that should be their actual host
    names.  Usually you
    must add the domain names you want to 
    /etc/mail/local-host-names

Again this is sendmail method.  I suggest test
on 1 email first before proceeding--be careful
with this as you might cause a mail loop when
done wrong.  tail -f /var/log/maillog as you
debug just to make sure.

Actually you got me interested and i tested
routing my own mail from hagibis.madugas.org to my
other server darna.madugas.org (both are MX
fronts so they are already configured to receive mail
for my domain).

here are the configs on hagibis.madugas.org 
that I tested:

method 1: (OK)

cat /etc/mail/mailertable
[EMAIL PROTECTED]                  [EMAIL PROTECTED]


method 2: (OK)

cat /etc/mail/virtusertable
[EMAIL PROTECTED]                 [EMAIL PROTECTED]

method 3: DID NOT WORK (recevied mail but did not relay)
cat /etc/mail/mailertable
[EMAIL PROTECTED]                  smtp:[darna.madugas.org]

method 4: DID NOT WORK (recevied mail but did not relay)
/etc/mail/virtusertable
[EMAIL PROTECTED]                  [EMAIL PROTECTED]


why does some work and some did not?  
because yyy is a real user on both servers!
i think it placed local mail relaying 
in higher priority.  there may be options to
sendmail to get around them, but I am at my
limits.   Many things are possible here.


dont forget to (cd /etc/mail; make) or restart
sendmail on any change.

good luck and have fun,
jondz

> 
> Thanks jondz! Btw, I want to be sure that this two
> suggested configuration will only be configured on the
> 
> relay server only, is it?
> 
> Velle----
> 
> how about this (sendmail):
> 
> /etc/mail/virtusertable
> (you need to enable virtusertable support in sendmail)
> 
>         glenn         [EMAIL PROTECTED]
>         trisha        [EMAIL PROTECTED]
> 
> OR
> 
> /etc/mail/access
> 
> To:[EMAIL PROTECTED]  smtp:[mail1.domain.com]
> To:[EMAIL PROTECTED] smtp:[mail2.domain.com]
> 
> __________________________________________________
> Do you Yahoo!?
> Yahoo! Platinum - Watch CBS' NCAA March Madness, live on your desktop!
> http://platinum.yahoo.com
> _
> Philippine Linux Users Group. Web site and archives at http://plug.linux.org.ph
> To leave: send "unsubscribe" in the body to [EMAIL PROTECTED]
> 
> Fully Searchable Archives With Friendly Web Interface at http://marc.free.net.ph
> 
> To subscribe to the Linux Newbies' List: send "subscribe" in the body to [EMAIL 
> PROTECTED]
> 

_
Philippine Linux Users Group. Web site and archives at http://plug.linux.org.ph
To leave: send "unsubscribe" in the body to [EMAIL PROTECTED]

Fully Searchable Archives With Friendly Web Interface at http://marc.free.net.ph

To subscribe to the Linux Newbies' List: send "subscribe" in the body to [EMAIL 
PROTECTED]

Reply via email to