LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   problems with sendmail (https://www.linuxquestions.org/questions/linux-software-2/problems-with-sendmail-819235/)

ciroesposito13@gmail.com 07-11-2010 12:51 PM

problems with sendmail
 
Hi.

Thank you in advance for any hint on the following problem.

I have Scientific Linux 5.3 (Red Hat 5.1)

Application fails to send mail.

/var/log/mailog is as follows:

Jul 11 19:05:25 localhost sendmail[4871]: o6BH3hHq004871: from=ciroesposito13@gmail.com, size=25, class=0, nrcpts=1, msgid=<201007111704.o6BH3hHq004871@localhost.localdomain>, proto=SMTP, daemon=MTA, relay=localhost.localdomain [127.0.0.1]

Jul 11 19:07:29 localhost sendmail[4875]: o6BH3hHq004871: to=ciroesposito13@libero.it, delay=00:02:39, xdelay=00:02:04, mailer=esmtp, pri=120025, relay=mxlibero3.libero.it. [212.52.84.165], dsn=4.0.0, stat=Deferred: Connection timed out with mxlibero3.libero.it.


using telnet to port 25 instead:

elnet localhost 25

Trying 127.0.0.1...

Connected to localhost.localdomain (127.0.0.1).

Escape character is '^]'.

220 localhost.localdomain ESMTP Sendmail 8.13.8/8.13.8; Sun, 11 Jul 2010 19:03:43 +0200

helo gmail.com

250 localhost.localdomain Hello localhost.localdomain [127.0.0.1], pleased to meet you

MAIL FROM:ciroesposito13@gmail.com

250 2.1.0 ciroesposito13@gmail.com... Sender ok

RCPT TO: ciroesposito13@libero.it

250 2.1.5 ciroesposito13@libero.it... Recipient ok

DATA

354 Enter mail, end with "." on a line by itself

Subect: prova invio

ciao

.

250 2.0.0 o6BH3hHq004871 Message accepted for delivery

quit

221 2.0.0 localhost.localdomain closing connection

Connection closed by foreign host.


Ciro

smoker 07-11-2010 03:58 PM

The problem is at the other end. The mailserver you are sending to is, deliberately or otherwise, not responding within a reasonable time. Sometimes they do that if you don't have reverse ip mapping set up for your domain or host.

I take it that the command line example went through ok ?

ciroesposito13@gmail.com 07-12-2010 12:57 PM

Hi.
Thanks for the reply.
How do I set reverse ip for my host?
Reading online, unless I misunderstood, I should set the BIND named.conf file but my default distro installs only "bind-libs-9.3.6-4.P1el5_4.2.i386" and "bind-utils-9.3 .6-4. P1el5_4.2.i386.
I tried to install bind-9.3.6-4.P1el5_4.2.i386 but the named daemon is stopped:
rndc: connect failed: 127.0.0.1 # 953: connection refused
Named interrupted.
Thank you.
Ciro

smoker 07-12-2010 01:35 PM

Do you have a fixed ip address ? How is your server connected to the internet ?
If you are using a home connection with dynamic ip then it's not worth trying as it will change. Either way, whoever supplies your ip address will have to do the reverse mapping to your host.
And as it appears that your command line attempt succeeded, there seems to be no need.

ciroesposito13@gmail.com 07-13-2010 02:37 AM

Hi.
I'm testing my server with a connection to home.
Unfortunately, the mail does not arrive.
Thank you.
Ciro


All times are GMT -5. The time now is 01:13 AM.