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: 

Sending emails using sendmail to different Domains

Sending emails using sendmail to different Domains

I am new to sendmail.

Now sendmail is configured centre.uk.abc.com.

I want to add abc.co.uk and abc.com

now its like below.
/usr/sbin/sendmail -bt
Enter

> $m
centre.uk.abc.com

what i need to do for adding this 2 new domains so that sendmail can send mail to all 3 domains.
5 REPLIES
Steven Schweda
Honored Contributor

Re: Sending emails using sendmail to different Domains

> Now sendmail is configured
> centre.uk.abc.com.

What, exactly, does that mean? (Is that a
real domain name or a fictional one?)

> I want to add abc.co.uk and abc.com

To what, exactly, would you like to add them?
(More fictional domain names?)

> what i need to do [...]

Normally, sendmail can send e-mail to any
domain without any need to change the
sendmail configuration. Why, exactly, do you
think that you have a problem? Did you run
some test? What? And what happened when you
did it?

As usual, showing actual commands with their
actual output can be more helpful than vague
descriptions or interpretations.

General info:

uname -a

Re: Sending emails using sendmail to different Domains


i have given fictonal domain name just for understanding .


When I am testing the SMTP configuration by sending a test mail. It is giving the following error.

reply = 451 4.1.8 Domain of sender address raja.roga@abc.co.uk
does not resolve.


when i tried to nslookup abc.co.uk and abc.com its not resolving the ips .Is it means this 2 domain is not configured in dns ?


From which file sendmail collects the DNS information ?

its HP 11.31 server.
Viktor Balogh
Honored Contributor

Re: Sending emails using sendmail to different Domains

>From which file sendmail collects the DNS information ?

as always, it refers to nsswitch.conf by resolving domain names.
****
Unix operates with beer.
Steven Schweda
Honored Contributor

Re: Sending emails using sendmail to different Domains

> i have given fictonal domain name just for
> understanding .

This must be some new meaning for
"understanding".

> [...] Is it means this 2 domain is not
> configured in dns ?

Something like that. If I could see the
actual domain name instead of your "for
understanding" domain name, then I might be
able to guess which system has the problem.
But, with my weak psychic powers, I can't.
Mel Burslan
Honored Contributor

Re: Sending emails using sendmail to different Domains

if you can not resolve the domain name to an ip address at the unix shell level, how do you expect sendmail to resolve it for you. UNIX, contrary to common belief is not magic. It only works with the information provided to it in a central location.

if nslookup can not find the address, sendmail can not send any mail to this domain. Plain and simple.

what I said above is only true if your server is an MTA itself, i.e sitting on the internet and messaging back and forth with the other mail servers out there, say, gmail, hotmail and what-not.

If your server is behind a corporate firewall with only one or two mail gateways to the outside world, then your task is to figure out the ip addresses or hostnames of those gateways, and find a line in /etc/mail/sendmail.cf as such:

grep ^DS /etc/mail/sendmail.cf

and insert that name right behind the letters DS and the line will look like something like this:

DSmailgateway
or
DSa.b.c.d <--if ip address only gateway.

then thou shalt not forget to beg the mail administrators to open the gateway for relaying messages from your server by letting them know your IP address.

if your problem is something else, you need to communicate it more clearly I'm afraid...
no spaces
________________________________
UNIX because I majored in cryptology...