Simpler Navigation for Servers and Operating Systems - Please Update Your Bookmarks
Completed: a much simpler Servers and Operating Systems section of the Community. We combined many of the older boards, so you won't have to click through so many levels to get at the information you need. Check the consolidated boards here as many sub-forums are now single boards.
If you have bookmarked forums or discussion boards in Servers and Operating Systems, we suggest you check and update them as needed.
General
cancel
Showing results for 
Search instead for 
Did you mean: 

Sendmail configuration - Forwarding to non-local domain

Michael Ernstoff
Frequent Advisor

Sendmail configuration - Forwarding to non-local domain

I have upgraded sendmail on an HP-UX 11.11 server from version 8.9.3.1 to version 8.13.3

Before there was just one cf file (sendmail.cf) and now there are two cf files (sendmail.cf and submit.cf).
I have a "smart" smtp server which I want to use for all mail sent to non-local addresses except for a specified list of domains.

At the moment all mail sent to non-local domains is going to the smart smtp server, including those in the specified domains.
I have set up /etc/mail/mailertable with the specified domains.

How do I configure sendmail, so that mail to the specified domains will be sent direct?

Thanks in advance, points will be given.
6 REPLIES
Arunvijai_4
Honored Contributor

Re: Sendmail configuration - Forwarding to non-local domain

http://sunportal.sunmanagers.org/pipermail/summaries/2001-December/000467.html
http://www.sendmail.org/faq/section4.html

-Arun
"A ship in the harbor is safe, but that is not what ships are built for"
Michael Ernstoff
Frequent Advisor

Re: Sendmail configuration - Forwarding to non-local domain

As someone who has never set up sendmail before I find the documentation (and the O'Reilly book) very difficult to understand.

How do I set up sendmail (8.13.3 on HP-UX 11i) so that:-

mail to a.com and b.com get forwarded to csmtp.com
and
mail to x.com and y.com get forwarded to zsmtp.com?

Should csmtp.com and zsmtp.com be in /etc/mail/relay-domains?
Steven E. Protter
Exalted Contributor

Re: Sendmail configuration - Forwarding to non-local domain

Shalom Michael,

You are probably on the right track.

With sendmail there are numerous ways to get certain tasks done.

You might be able to set up masquerades in an sendmail macro file.

The best resource for this is probably the http://www.sendmail.org website. It includes expamples that you can cut and paste to deal with many situations.

What you are trying to do is on the complex side.

The receiving domains are going to have to explicity authorize relay based on your public Internet IP address.

Let me know if you need help navigating the sendmail website, I may have time later to come up with some specific pages that apply to your question. I'm posting now for two reasons:
1) I don't want you to wait for me to have time.
2) I'm waiting for lunch and don't want to start a complicated search right now.

Good Luck.

SEO
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
Michael Ernstoff
Frequent Advisor

Re: Sendmail configuration - Forwarding to non-local domain

Steven,
Thanks for your quick response.
In my example, csmtp.com is internal to the group of companies that I am working for and manages mail for the group.
zsmtp.com is a vendor for the application running on this server.
There should not be a problem with them receiving mail from my server.

I don't find sendmail.org easy to use. It feels like you need a sendmail training course before you could understand enough to use it.

I don't think that I want to use masquerading.

I set up the relay-domains file, but looking at the mail.log file, mails are not getting routed to these servers and I do not understand why.
Michael Ernstoff
Frequent Advisor

Re: Sendmail configuration - Forwarding to non-local domain

Just realised that the command I was using to create the mailertable mapfile was creating a db file, where sendmail is using dbm type. Both db and dbm were there, and so sendmail was reading the old unamended file. It was only when I deleted the old one, that I got messages in the log stating that the map file was missing.
Test server seems to be working OK now.
Ivan Ferreira
Honored Contributor

Re: Sendmail configuration - Forwarding to non-local domain

I think that the easy way is to use sendmail.mc macro file and configure:

FEATURE(`mailertable',`hash -o /etc/mail/mailertable.db')dnl
Por que hacerlo dificil si es posible hacerlo facil? - Why do it the hard way, when you can do it the easy way?