LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (http://www.linuxquestions.org/questions/linux-software-2/)
-   -   Sendmail not sending emails, errorlog (http://www.linuxquestions.org/questions/linux-software-2/sendmail-not-sending-emails-errorlog-66913/)

hydro 06-20-2003 03:41 PM

Sendmail not sending emails, errorlog
 
I just reinstalled it and now I cant send emails :/


I tried sending a email to pshamilov@yahoo.com from my box and this is the errorlog

Code:

Jun 20 16:35:20 localhost sendmail[31459]: My unqualified host name (Apophis) unknown; sleeping for retry
Jun 20 16:36:20 localhost sendmail[31459]: unable to qualify my own domain name (Apophis) -- using short name
Jun 20 16:36:20 localhost sendmail[31459]: h5KKaKNW031459: from=root@Apophis, size=983, class=0, nrcpts=1, msgid=<200306202036.h5KKaKNW031459@Apophis>, relay=root@localhost
Jun 20 16:36:20 localhost sendmail[31459]: h5KKaKNW031459: to=pshamilov@yahoo.com, ctladdr=root@Apophis (0/0), delay=00:00:00, xdelay=00:00:00, mailer=relay, pri=30218, relay=[127.0.0.1] [127.0.0.1], dsn=4.0.0, stat=Deferred: Connection refused by [127.0.0.1]

Apophis = System host name

how do I fix this?
Thx guys

nuzzy 06-20-2003 03:43 PM

edit your /etc/hosts file so you have this, i.e.:

192.168.1.1 hostname.domainname hostname


Just change to your ip, hostname and domainname

BTW..I didn't do it here, but I tab after each entry

hydro 06-20-2003 03:46 PM

I think I already have that,

Code:

127.0.0.1      localhost.localdomain  localhost
192.168.0.3    Apophis
192.168.0.2    comp-paul

192.168.0.3 is the ip

edit
---------
ok I just changed it too

Code:

127.0.0.1      localhost.homedomain    localhost
192.168.0.3    Apophis.homedomain      Apophis
192.168.0.5    comp-paul.homedomain    comp-paul

is that good enough?

nuzzy 06-20-2003 03:50 PM

it looks like all you have is your hostname there. Do you have a name like apophis.mydomain.com?

hydro 06-20-2003 03:50 PM

well I do have pavel.ath.cx pointing to my external ip


after the revision i get

Code:

Jun 20 16:51:50 localhost sendmail[31956]: h5KKpne9031956: from=root@Apophis.homedomain, size=360, class=0, nrcpts=1, msgid=<200306202051.h5KKpne9031956@Apophis.homedomain>, relay=root@localhost
Jun 20 16:51:50 localhost sendmail[31956]: h5KKpne9031956: to=pshamilov@yahoo.com, ctladdr=root@Apophis.homedomain (0/0), delay=00:00:01, xdelay=00:00:00, mailer=relay, pri=30210, relay=[127.0.0.1] [127.0.0.1], dsn=4.0.0, stat=Deferred: Connection refused by [127.0.0.1]


hydro 06-20-2003 03:53 PM

And no, I just have a small home network, behind a router

nuzzy 06-20-2003 05:06 PM

try making it apophis.pavel.ath.cx

hydro 06-20-2003 05:18 PM

did that no go, I set it up to relay to my isp, but the log shows the same :( doest relay even though it was set up properly( I think, webmin shows the isp in its options so I guess it did)

nuzzy 06-20-2003 05:48 PM

Do you have a FQDN? You need a fully qualifed domain name for dns/mx use...


All times are GMT -5. The time now is 06:51 AM.