- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: How to activate two relay systems?
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-03-2003 05:31 AM
тАО09-03-2003 05:31 AM
How to activate two relay systems?
I have two network zones, with a exchange server each one. I want relay all mails "domain.com" to server1, and the rest to server2, "domainx.com", "domainy.com".
I have modified sendmail.cf on this way:
DSserver1
Kmailertable dbm /etc/mail/mailertable
And mailertable:
domainx.com smtp:server2
domainy.com smtp:server2
Where is the error? All of mails go to server1.
What can I do to configure that correctly?
Thanks in advance and excuses by my writing.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-03-2003 05:40 AM
тАО09-03-2003 05:40 AM
Re: How to activate two relay systems?
This file probably contains error messages that will make this easier to diagnose.
Please take a look there and post anything that looks strange.
You might want to do this:
fail -f /var/adm/syslog/mail.log
Then send a mail that should be relayed, watch the log.
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-03-2003 10:55 PM
тАО09-03-2003 10:55 PM
Re: How to activate two relay systems?
Sep 3 15:10:29 amarillo10 sendmail[9487]: PAA09487: to=paco@porras.com, ctladdr=root (0/3), delay=00:00:02, xdelay=00:00:01, mai
ler=relay, relay=server1 [89.1.0.156], stat=Sent (Mail accepted)
Sep 3 15:14:25 amarillo10 sendmail[9500]: PAA09500: from=root, size=0, class=0, pri=30000, nrcpts=1, msgid=<200309031314.PAA09500@pio10>, relay=root@localhost
Sep 3 15:14:25 amarillo10 sendmail[9500]: PAA09500: to=rosario@flores.com, ctladdr=root (0/3), delay=00:00:01, xdelay=00:00:00, mai
ler=relay, relay=server1 [89.1.0.156], stat=Sent (Mail accepted)
No error, but all the exchange is goint to "server1".
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-04-2003 01:10 AM
тАО09-04-2003 01:10 AM
Re: How to activate two relay systems?
Please reveal the version of your sendmail config:
# echo quit | sendmail -bs
perhaps the rules for using the mailertable are not active, or incorporated in your sendmail.cf:
# grep -i mailertable sendmail.cf
if there are lines that start with:
#S...
#R...
then using the mailertable is not activated in your sendmail.cf
and last but not least, after creating the text file /etc/mail/mailertable, you need to manually build the database:
# makemap dbm /etc/mail/mailertable < /etc/mail/mailertable
HTH
Kasper
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-04-2003 01:22 AM
тАО09-04-2003 01:22 AM
Re: How to activate two relay systems?
In the sendmail.cf these are the lines with "#":
#R< $+ > $* $: < $(mailertable $1 $) > $2 lookup
### Ruleset 90 -- try domain part of mailertable entry ###
#R$* <$- . $+ > $* $: $1$2 < $(mailertable .$3 $@ $1$2 $@ $2 $) > $4
#R$* < $* > $* $: < $(mailertable . $@ $1$2 $) > $3 try "."
#R< $* > $* $@ $2 no mailertable match
Should I uncoment these lines?
In the sendmail.cf I have this other line:
# Mailer table (overriding domains)
Kmailertable dbm /etc/mail/mailertable
Is the mailertable activated so?
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-04-2003 01:39 AM
тАО09-04-2003 01:39 AM
Re: How to activate two relay systems?
Well there you have it :-)
You need to remove the single comments for both complete blocks, where the lines occur.
make sure the 'space' between 'statements' are
:set list
this will show the non-displayable characters:
and ofcourse the makemap I mentioned
HTH
Kasper
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-04-2003 02:25 AM
тАО09-04-2003 02:25 AM
Re: How to activate two relay systems?
I have removed the comments and the makemap. The mails continue going to "server1". They ignore the mailertable file..
There is some thing that I must do?
There is any way to configurate this? ??domaintable???
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-04-2003 02:38 AM
тАО09-04-2003 02:38 AM
Re: How to activate two relay systems?
You can handle multiple domains with the mailertable entries AND
entries in virtusertable and generictable to handle the second domain
virtusertable will look like this:
@domainofserver2
genrics will be the reverse
username
AND
entries in
/etc/mail/aliases
forwarding mail for that dummy user to server2
@domainofserver2
You'll probably need a dummy username to make it work.
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-04-2003 04:08 AM
тАО09-04-2003 04:08 AM
Re: How to activate two relay systems?
It's alredy works... !!
I don't know exactly what I have done, but, the mail's are going to SERVER2...
THANKS..
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-04-2003 04:16 AM
тАО09-04-2003 04:16 AM
Re: How to activate two relay systems?
mr Poster, I have uncommented lines 1382-1386, two lines before until two line after your 1st hit in the rule are of mailertable:
# not local -- try mailer table lookup
R$* <@ $+ > $* $: < $2 > $1 < @ $2 > $3 extract host name
R< $+ . > $* $: < $1 > $2 strip trailing dot
R< $+ > $* $: < $(mailertable $1 $) > $2 lookup
R< $~[ : $+ > $* $>95 < $1 : $2 > $3 check -- resolved?
R< $+ > $* $: $>90 <$1> $2 try domain
and the line of ruleset S90 (1511-1516):
S90
R$* <$- . $+ > $* $: $1$2 < $(mailertable .$3 $@ $1$2 $@ $2 $) > $4
R$* <$~[ : $+ > $* $>95 < $2 : $3 > $4 check -- resolved?
R$* < . $+ > $* $@ $>90 $1 . <$2> $3 no -- strip & try again
R$* < $* > $* $: < $(mailertable . $@ $1$2 $) > $3 try "."
R< $~[ : $+ > $* $>95 < $1 : $2 > $3 "." found?
R< $* > $* $@ $2 no mailertable match
I have also added a line to the mailertable, that reflects the DS:
. esmtp:server1
are you sure you have built the mailertable database:
makemap dbm mailertable < mailertable.
You can verify (without sending a message, potentially with a test sendmail.cf):
# sendmail -bt
or
# sendmail -bt -C sendmail.cf.test
>/parse user@domain
... (a lot of lines)
mailer esmtp, host server1, user user@domain
>/parse user@domainx.com
... (should return)
mailer smtp, host server2, user user@domainx.com
>
HTH
Kasper