LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   sendmail test problems (https://www.linuxquestions.org/questions/linux-networking-3/sendmail-test-problems-53777/)

synfield 04-06-2003 11:31 PM

sendmail test problems
 
I have a small 3 node LAN, all running RH7.3 have set up sendmail and enabled pop3.

My objective is to get the users on each of the client nodes to be able to send mail internally.

I have not configured DNS assuming I can do this using the /etc/hosts file,as follows;

127.0.0.1 alinghi localhost.localdomain localhost
192.168.100.1 alinghi alinghi.polecat.com polecat.com
192.168.100.2 oneworld
192.168.100.3 prada

sendmail files configuration as follows

# /etc/mail/local-host-names;

alinghi
alinghi.polecat.com
polecat.com

in /etc/sendmail.cf
I have commented out smtp default i.e;

#O DaemonPortOptions=Port=smtp,Addr=127.0.0.1, Name=MTA
O DaemonPortOptions=Port=smtp,Addr=192.168.100.1, Name=MTA

the /etc/mail/access file ia as follows;

localhost.localdomain RELAY
localhost RELAY
127.0.0.1 RELAY
polecat.com RELAY

I have confirmed that sendmail is excepting external connections and have enabled pop3 service in ipop3 file.

I test the server/clients using the mail utility
i.e.

#mail boney@polecat.com
subject: testing sendmail...
.
EOT

when i look at the /var/log/maillog on alinghi
i get the following connection refused error

Apr 7 15:48:20 alinghi sendmail[10855]: h372PBT10420: to=bruce@oneworld, ctladdr=todd (501/500), delay=01:23:09, xdelay=00:00:00, mailer=esmtp, pri=300124, relay=oneworld.localdomain., dsn=4.0.0, stat=Deferred: Connection refused by oneworld.localdomain.


Note boney is a user on alinghi (also the mail server)
polecat.com is also aliase for alinghi as noted in 'hosts' file.

likewise send an email from user on oneworld i.e. bruce@oneworld to boney@polecat.com

and the /var/log/maillog shows a name lookup error

Apr 7 16:16:43 oneworld sendmail[10855]: h374Ahx01915: to=boney@polecat.com, ctladdr=todd (501/500), delay=00:06:00, xdelay=00:00:04, mailer=esmtp, pri=30139, relay=alinghi.polecat.com., dsn=4.0.0, stat=Deferred: Name server: alinghi.polecat.com.: host name lookup failure

I have only configured sendmail on the mail server
alinghi. do i also need to make similar changes to sendmail on all the clients as well?

Eventually i would like users to be able to send email externally and for them to recieve replies externally. I have a dial up connection to my ISP only and have not registered polecat.com as a real FQDN, will I still be able to do this how?

Cheers

Synfield


All times are GMT -5. The time now is 09:20 AM.