Operating System - HP-UX
1748204 Members
4125 Online
108759 Solutions
New Discussion юеВ

Sending emails using sendmail to different Domains

 
prasanta panda
Visitor

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 5
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
prasanta panda
Visitor

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...