sendmail wont send out emails

Taking care of your Linux box.
Post Reply
ghulam yaseen
Naik
Posts: 68
Joined: Thu Aug 07, 2008 6:09 pm
Location: karachi

sendmail wont send out emails

Post by ghulam yaseen »

Sendmail is not able to send mail out of server and holds then all in the ques

xxxx sendmail[3659]: o39Efxx2003659: to=******@xxxx.com, ctladdr=root (0/0), delay=00:00:04, xdelay=00:00:00, mailer=relay, pri=30003, relay=[127.0.0.1] [127.0.0.1], dsn=2.0.0, stat=Sent (o39Eg3NE003660 Message accepted for delivery)

am trying to forward emails to smtp server.
lambda
Major General
Posts: 3452
Joined: Tue May 27, 2003 7:04 pm
Location: Lahore
Contact:

Post by lambda »

"message accepted for delivery" means that sendmail did send it out. it's no longer visible when you type "mailq", right? so, it's gone.
Watch out for the Manners Taliban!
Isn't it amazing how so many people can type "linuxpakistan.net" into their browsers but not "google.com"?
ghulam yaseen
Naik
Posts: 68
Joined: Thu Aug 07, 2008 6:09 pm
Location: karachi

Post by ghulam yaseen »

[root@xxxx ~]# mailq
/var/spool/mqueue (6 requests)

it is not sending it out...............or the SMTP server is not allowing it to relay
lambda
Major General
Posts: 3452
Joined: Tue May 27, 2003 7:04 pm
Location: Lahore
Contact:

Post by lambda »

maybe you should show the log entries for the messages that aren't sent.
Watch out for the Manners Taliban!
Isn't it amazing how so many people can type "linuxpakistan.net" into their browsers but not "google.com"?
ghulam yaseen
Naik
Posts: 68
Joined: Thu Aug 07, 2008 6:09 pm
Location: karachi

Post by ghulam yaseen »

If i am not wrong then SMTP server is not allowing the RELAY of this server.
what do you lambda bhai

Regards,
lambda wrote:maybe you should show the log entries for the messages that aren't sent.
lambda
Major General
Posts: 3452
Joined: Tue May 27, 2003 7:04 pm
Location: Lahore
Contact:

Post by lambda »

If i am not wrong then SMTP server is not allowing the RELAY of this server.
if you say so. without more detailed logs, no one can help you unless they guess at the solution. do you want guesswork or do you want reasoned analysis?
Watch out for the Manners Taliban!
Isn't it amazing how so many people can type "linuxpakistan.net" into their browsers but not "google.com"?
syedbilalmasaud
Naib Subedar
Posts: 347
Joined: Thu Aug 18, 2005 9:25 am
Location: Attock
Contact:

Post by syedbilalmasaud »

can you please capture the packet file and post it here

use tcpdump to capture packet

command

tcpdump -vns0 -i ethx(or whatever) port 25 -w file.pcap

post your file.pcap here

----------------------------

Dear lambda ,

I am trying to help him so please do not pass any negative comment , hope you will understand

-----------------------------
Cheers :)

:D B I L A L :D
lambda
Major General
Posts: 3452
Joined: Tue May 27, 2003 7:04 pm
Location: Lahore
Contact:

Post by lambda »

all he has to do is post the log entries. they will tell you why the email isn't going out, not tcpdump.

can you tell the difference between a 451 rejection due to rbl and a 451 rejection for relaying denied using tcpdump? no.
Watch out for the Manners Taliban!
Isn't it amazing how so many people can type "linuxpakistan.net" into their browsers but not "google.com"?
syedbilalmasaud
Naib Subedar
Posts: 347
Joined: Thu Aug 18, 2005 9:25 am
Location: Attock
Contact:

Post by syedbilalmasaud »

I want to check weather sendmail is communicating properly with other mail server or not
Cheers :)

:D B I L A L :D
lambda
Major General
Posts: 3452
Joined: Tue May 27, 2003 7:04 pm
Location: Lahore
Contact:

Post by lambda »

if someone posts here asking why he can't login to his dialup ISP, do you ask him to record the sounds the modem makes while connecting, or is it more important to ask what he sees on the screen?

tcpdump is like recording the sounds. useful in a few limited cases, but useless when it comes to solving the problem.
Watch out for the Manners Taliban!
Isn't it amazing how so many people can type "linuxpakistan.net" into their browsers but not "google.com"?
ghulam yaseen
Naik
Posts: 68
Joined: Thu Aug 07, 2008 6:09 pm
Location: karachi

Post by ghulam yaseen »

definitely, i dont want the guess work :)
Apr 14 17:18:36 xxxxxx sendmail[14082]: o3ECIarD014082: to=xxx.xxxx@xxxx.com, ctladdr=root (0/0), delay=00:00:00, xdelay=00:00:00, mailer=relay, pri=30049, relay=[127.0.0.1] [127.0.0.1], dsn=2.0.0, stat=Sent (o3ECIaOw014083 Message accepted for delivery)


mailq
/var/spool/mqueue (1 request)
-----Q-ID----- --Size-- -----Q-Time----- ------------Sender/Recipient-----------
o3ECIaOw014083* 6 Wed Apr 14 17:18 <root@xxxx.com>
<xxx.xxx@xxx.com>


Is there any more information needed?
lambda
Major General
Posts: 3452
Joined: Tue May 27, 2003 7:04 pm
Location: Lahore
Contact:

Post by lambda »

do you see o3ECIarD014082 anywhere else in the logs? do you see an attempt to connect to xxxx.com? you should see additional lines after that.
Watch out for the Manners Taliban!
Isn't it amazing how so many people can type "linuxpakistan.net" into their browsers but not "google.com"?
ghulam yaseen
Naik
Posts: 68
Joined: Thu Aug 07, 2008 6:09 pm
Location: karachi

Post by ghulam yaseen »

mailq
/var/spool/mqueue (3 requests)
-----Q-ID----- --Size-- -----Q-Time----- ------------Sender/Recipient-----------
o3ECIarD014082 1 Mon Apr 26 07:25 <root@localhost.localdomain>
(Deferred: Connection refused by xxx.xxxx.com.)
<ghulam.yaseen@xxxx.xxx>
o3QBbAkn023213 1 Mon Apr 26 07:37 <root@localhost.localdomain>
(Deferred: Connection refused by xxxx.xxx.xx.com.)
<ghulam.yaseen@xxxx.xxx>
o3QBQN6X023021 1 Mon Apr 26 07:26 <root@localhost.localdomain>
(Deferred: Connection refused by xxxx.xxxx.xx.com.)
<
Total requests: 3

Any more idea?
lambda
Major General
Posts: 3452
Joined: Tue May 27, 2003 7:04 pm
Location: Lahore
Contact:

Post by lambda »

you've been stuck on this for at least two weeks now. i don't think you're serious about solving the problem; i think you're wasting everyone's time here. you have two choices right now:

1. go away.
2. provide the full log entries.

it's odd that your mailq shows a date of april 26; today's april 24.
Watch out for the Manners Taliban!
Isn't it amazing how so many people can type "linuxpakistan.net" into their browsers but not "google.com"?
ghulam yaseen
Naik
Posts: 68
Joined: Thu Aug 07, 2008 6:09 pm
Location: karachi

Post by ghulam yaseen »

well lambda bhai, no worries of time, as this was testing and learning thing for me.eventually this was resolved by taking these steps

Added following line to /etc/mail/sendmail.mc

define(`SMART_HOST', `my_isp_mailserver')dnl

/etc/mail/sendmail.cf
DSmy_isp_mailserver

/etc/hosts
10.xxx.xx.xxx my_isp_mailserver

now i can email, ........
lambda wrote:you've been stuck on this for at least two weeks now. i don't think you're serious about solving the problem; i think you're wasting everyone's time here. you have two choices right now:

1. go away.
2. provide the full log entries.

it's odd that your mailq shows a date of april 26; today's april 24.
Post Reply