This content has been marked as final. Show 4 replies
971924 wrote:ISBN-13: 978-0596510299 .... good luck .... good bedtime reading .... most mortals will sleep well on it.
I'm sorry if my question too dumb for you, but i need deep explanation how to configure sendmail.
this is my scenario :You can try the following brute force things to see if it helps ....
1. I have solaris server with hostname A
2. I have mail server with hostname B
3. I already put hostname B in /etc/hosts hostname A
4. I already put hostname B in /etc/resolve.conf hostname A
4. I can ping use hostname B (domain)
5. But i'm not receive any mail in my mailbox at hostname B, when I send mail from hostname A to hostname B using command "mailx -s "test" firstname.lastname@example.org
anyone help me? :)
1.Try adding 'mailhost' as an alias to hostname B on the /etc/hosts of hostname A
2. svcs -a | grep mail .... svcadm disable XXXX ; svcadm enable XXXX anything looking apporpriate.
3. The hostname B in /etc/resolve.conf hostname A wont help much if Hostname B it isn't a DNS server.
I am not a guru in this area .... i prod a couple of things and sometimes it works ... and sometimes it doesn't
That +might+ be enough ..... and it might not be. Some guru's can get a lot more complex than this.
One thing you might want to try is add the "-v" option to your mailx command:
mailx -v -s "test" email@example.com
It should show a trace of the message and show you where it is being delivered.
I have found that if your domain has an MX record associated with it, sendmail will try to use it as a relay for all messages regardless if it's in your domain or not. Also, check your /etc/mail/sendmail.cf and see if you have anything configured for "DS"
grep ^DS /etc/mail/sendmail.cf
If it is blank, it will use the MX record for the relay.
I guess your issue might be caused by DNS resolution.
Try the follows
Host_A # telnet Host_B 25
EHLO Host_A <= input
mail from:root@Host_A <== Input
250 2.1.0 Ok
rcpt to:<test@Host_B> <== Input
250 2.1.5 Ok
data <== Input
354 End data with <CR><LF>.<CR><LF>
subject: test <== Input
You will see what a problem is.
if you are servers are not in dns domain
then u have to add the ips like
im giving here for relay server
DS[mymailserver] ------it will go to /etc/hosts
if u have dns was their do
DSmymailserver ------it will go to dns resolv.conf
u can add enties like that in ur configuration