sendmail wont send out emails

Taking care of your Linux box.

sendmail wont send out emails

Postby ghulam yaseen » Fri Apr 09, 2010 7:49 pm

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.
ghulam yaseen
Naik
 
Posts: 68
Joined: Thu Aug 07, 2008 6:09 pm
Location: karachi

Postby lambda » Fri Apr 09, 2010 11:37 pm

"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"?
lambda
Major General
 
Posts: 3452
Joined: Tue May 27, 2003 7:04 pm
Website: http://www.hungry.com/~fn/
Location: Lahore

Postby ghulam yaseen » Sat Apr 10, 2010 10:04 am

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

it is not sending it out...............or the SMTP server is not allowing it to relay
ghulam yaseen
Naik
 
Posts: 68
Joined: Thu Aug 07, 2008 6:09 pm
Location: karachi

Postby lambda » Sat Apr 10, 2010 4:03 pm

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"?
lambda
Major General
 
Posts: 3452
Joined: Tue May 27, 2003 7:04 pm
Website: http://www.hungry.com/~fn/
Location: Lahore

Postby ghulam yaseen » Mon Apr 12, 2010 11:48 am

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.
ghulam yaseen
Naik
 
Posts: 68
Joined: Thu Aug 07, 2008 6:09 pm
Location: karachi

Postby lambda » Mon Apr 12, 2010 8:45 pm

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"?
lambda
Major General
 
Posts: 3452
Joined: Tue May 27, 2003 7:04 pm
Website: http://www.hungry.com/~fn/
Location: Lahore

Postby syedbilalmasaud » Tue Apr 13, 2010 2:41 pm

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
syedbilalmasaud
Naib Subedar
 
Posts: 347
Joined: Thu Aug 18, 2005 9:25 am
WLM: bm1984@hotmail.com
Yahoo Messenger: syedbilalmasaud@yahoo.com
Location: Attock

Postby lambda » Wed Apr 14, 2010 1:58 am

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"?
lambda
Major General
 
Posts: 3452
Joined: Tue May 27, 2003 7:04 pm
Website: http://www.hungry.com/~fn/
Location: Lahore

Postby syedbilalmasaud » Wed Apr 14, 2010 8:33 am

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



:D B I L A L :D
syedbilalmasaud
Naib Subedar
 
Posts: 347
Joined: Thu Aug 18, 2005 9:25 am
WLM: bm1984@hotmail.com
Yahoo Messenger: syedbilalmasaud@yahoo.com
Location: Attock

Postby lambda » Wed Apr 14, 2010 10:46 am

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"?
lambda
Major General
 
Posts: 3452
Joined: Tue May 27, 2003 7:04 pm
Website: http://www.hungry.com/~fn/
Location: Lahore

Postby ghulam yaseen » Wed Apr 14, 2010 5:24 pm

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?
ghulam yaseen
Naik
 
Posts: 68
Joined: Thu Aug 07, 2008 6:09 pm
Location: karachi

Postby lambda » Wed Apr 14, 2010 6:08 pm

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"?
lambda
Major General
 
Posts: 3452
Joined: Tue May 27, 2003 7:04 pm
Website: http://www.hungry.com/~fn/
Location: Lahore

Postby ghulam yaseen » Fri Apr 23, 2010 4:48 pm

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?
ghulam yaseen
Naik
 
Posts: 68
Joined: Thu Aug 07, 2008 6:09 pm
Location: karachi

Postby lambda » Sat Apr 24, 2010 1:55 am

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"?
lambda
Major General
 
Posts: 3452
Joined: Tue May 27, 2003 7:04 pm
Website: http://www.hungry.com/~fn/
Location: Lahore

Postby ghulam yaseen » Mon May 03, 2010 4:05 pm

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.
ghulam yaseen
Naik
 
Posts: 68
Joined: Thu Aug 07, 2008 6:09 pm
Location: karachi


Return to “%s” Administration

Who is online

Users browsing this forum: No registered users and 2 guests

cron