LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 04-06-2010, 03:51 PM   #1
Sargalus
Member
 
Registered: Feb 2010
Location: Arizona
Distribution: Slackware 13.0
Posts: 106

Rep: Reputation: 16
Sendmail queue not processing


Ok for some reason my sendmail queue is not processing the mail that's in mailq it looks like it trys to process and times out or something and skips to the next one, is there any way I can find out why it's not sending the queue list that's in mailq. the mail that's in the queue list is from my websites registration form.
 
Old 04-06-2010, 04:58 PM   #2
backblaze.pl
LQ Newbie
 
Registered: Apr 2010
Distribution: Slackware
Posts: 23

Rep: Reputation: 6
YES! You can read logs ;-)

What can you read in your sendmail's logs?
Can sendmail connect to external hosts?
Isn't it a firewall issue?
Did it manage to send ANY message to external host ever before?

--
http://backblaze.eu - backup your computer online before you wish you had
 
Old 04-06-2010, 06:47 PM   #3
Sargalus
Member
 
Registered: Feb 2010
Location: Arizona
Distribution: Slackware 13.0
Posts: 106

Original Poster
Rep: Reputation: 16
yeah this is what's showing in the maillog file

Code:
0, mailer=esmtp, pri=930558, relay=mailstore1.secureserver.net., dsn=4.0.0, stat=Deferred: Connection timed out with mailstore1.secureserver.net.
Apr  6 16:29:34 requiem sm-mta[4095]: o36JkhXv003722: to=<smeegols@gmail.com>, ctladdr=<apache@requiem.requiemofblood.com> (80/80), delay=03:42:50, xdelay=00:00:00, mailer=esmtp, pri=960635, relay=alt4.gmail-smtp-in.l.google.com., dsn=4.0.0, stat=Deferred: Connection timed out with alt4.gmail-smtp-in.l.google.com.
Apr  6 16:29:34 requiem sm-mta[4095]: o36JkhXv003722: to=<info@recoverytucson.org>, ctladdr=<apache@requiem.requiemofblood.com> (80/80), delay=03:42:50, xdelay=00:00:00, mailer=esmtp, pri=960635, relay=mailstore1.secureserver.net., dsn=4.0.0, stat=Deferred: Connection timed out with mailstore1.secureserver.net.
Apr  6 16:29:34 requiem sm-mta[4095]: o36JpEAX003749: to=<pete@hoperecoveryinc.org>, ctladdr=<apache@requiem.requiemofblood.com> (80/80), delay=03:38:20, xdelay=00:00:00, mailer=esmtp, pri=1020558, relay=mailstore1.secureserver.net., dsn=4.0.0, stat=Deferred: Connection timed out with mailstore1.secureserver.net.
Apr  6 16:29:34 requiem sm-mta[4095]: o36JmeOY003735: to=<smeegols@gmail.com>, ctladdr=<apache@requiem.requiemofblood.com> (80/80), delay=03:40:54, xdelay=00:00:00, mailer=esmtp, pri=1050636, relay=alt4.gmail-smtp-in.l.google.com., dsn=4.0.0, stat=Deferred: Connection timed out with alt4.gmail-smtp-in.l.google.com.
Apr  6 16:29:34 requiem sm-mta[4095]: o36JmeOY003735: to=<info@recoverytucson.org>, ctladdr=<apache@requiem.requiemofblood.com> (80/80), delay=03:40:54, xdelay=00:00:00, mailer=esmtp, pri=1050636, relay=mailstore1.secureserver.net., dsn=4.0.0, stat=Deferred: Connection timed out with mailstore1.secureserver.net.
Apr  6 16:29:34 requiem sm-mta[4095]: o36JbbZf003713: to=<info@recoverytucson.org>, ctladdr=<apache@requiem.requiemofblood.com> (80/80), delay=03:51:56, xdelay=00:00:00, mailer=esmtp, pri=1110636, relay=mailstore1.secureserver.net., dsn=4.0.0, stat=Deferred: Connection timed out with mailstore1.secureserver.net.
looks like everything is timing out but I have no idea why, because it use to work fine when I was running Ubuntu but now that I switched to slackware 13.0 im having this issue, could it be the way sendmail is configured and I need to reconfigure it or install it by source?
 
Old 04-06-2010, 07:09 PM   #4
backblaze.pl
LQ Newbie
 
Registered: Apr 2010
Distribution: Slackware
Posts: 23

Rep: Reputation: 6
There is a problem with connection:
Code:
dsn=4.0.0, stat=Deferred: Connection timed out with [...]
1. Can you
Code:
telnet <any-of-hosts-mentioned-in-log> 25
?

If not, check your iptables setup:
Code:
iptables-save
If output is empty, you have no firewall rules at this host at all, so problem lies somewhere between you and target host.

If you can connect, there may be sort of antivirus software installed somewhere between you and target host (most probably at your ISP) that may be causing problems.

Are you sure you are not listed in any of RBLs?

Beware: being email server administrator is a full-time job that requires knowledge and experience far behind that compiling mail server software. Glad not being one anymore ;-)
 
Old 04-06-2010, 07:17 PM   #5
Sargalus
Member
 
Registered: Feb 2010
Location: Arizona
Distribution: Slackware 13.0
Posts: 106

Original Poster
Rep: Reputation: 16
Quote:
Originally Posted by backblaze.pl View Post
There is a problem with connection:
Code:
dsn=4.0.0, stat=Deferred: Connection timed out with [...]
1. Can you
Code:
telnet <any-of-hosts-mentioned-in-log> 25
?

If not, check your iptables setup:
Code:
iptables-save
If output is empty, you have no firewall rules at this host at all, so problem lies somewhere between you and target host.

If you can connect, there may be sort of antivirus software installed somewhere between you and target host (most probably at your ISP) that may be causing problems.

Are you sure you are not listed in any of RBLs?

Beware: being email server administrator is a full-time job that requires knowledge and experience far behind that compiling mail server software. Glad not being one anymore ;-)
I don't have anyt iptables rulesets set at all, there is no antivirus software installed on the box and im not able to telnet to any of the hosts via port 25

how do I find out if im listed in any of the RBL's my ISP is cox cable
 
Old 04-06-2010, 07:35 PM   #6
backblaze.pl
LQ Newbie
 
Registered: Apr 2010
Distribution: Slackware
Posts: 23

Rep: Reputation: 6
I wrote about antivirus software installed at your ISP, but as you can not connect at all, this is not the case.

To see if you are listed, see http://www.dnsbl.info/dnsbl-list.php

Probably your ISP blocks connection to port 25 to prevent spam. They may have changed rules while you were changing distro - that may be why 'it used to work in Ubuntu'. Simply contact them for clarification and support, explaining why you need mailserver for.

Maybe your sendmail is open relay AND your ISP checked that AND blocked you just in case?
 
Old 04-06-2010, 07:48 PM   #7
Sargalus
Member
 
Registered: Feb 2010
Location: Arizona
Distribution: Slackware 13.0
Posts: 106

Original Poster
Rep: Reputation: 16
Quote:
Originally Posted by backblaze.pl View Post
I wrote about antivirus software installed at your ISP, but as you can not connect at all, this is not the case.

To see if you are listed, see http://www.dnsbl.info/dnsbl-list.php

Probably your ISP blocks connection to port 25 to prevent spam. They may have changed rules while you were changing distro - that may be why 'it used to work in Ubuntu'. Simply contact them for clarification and support, explaining why you need mailserver for.

Maybe your sendmail is open relay AND your ISP checked that AND blocked you just in case?


I wil check this out, we also had comcast until recently moved and changed to cox so it could be a cox issue where they are blocking outgoing but why would they block outgoing and not incoming? Im also not listed on that site, so it must be an ISP issue

Last edited by Sargalus; 04-06-2010 at 07:50 PM.
 
Old 04-06-2010, 07:56 PM   #8
backblaze.pl
LQ Newbie
 
Registered: Apr 2010
Distribution: Slackware
Posts: 23

Rep: Reputation: 6
Quote:
Originally Posted by Sargalus View Post
[...] but why would they block outgoing and not incoming? Im also not listed on that site, so it must be an ISP issue
That's why they are blocking: to not get listed. To prevent their customers zombie computers from spamming.
 
Old 04-06-2010, 10:44 PM   #9
Sargalus
Member
 
Registered: Feb 2010
Location: Arizona
Distribution: Slackware 13.0
Posts: 106

Original Poster
Rep: Reputation: 16
Quote:
Originally Posted by backblaze.pl View Post
That's why they are blocking: to not get listed. To prevent their customers zombie computers from spamming.
would it be possible to setup sendmail to use my isp outgoing mail server? or is there a work around for this at all?
 
Old 04-07-2010, 10:25 AM   #10
Sargalus
Member
 
Registered: Feb 2010
Location: Arizona
Distribution: Slackware 13.0
Posts: 106

Original Poster
Rep: Reputation: 16
this is what doesn't make sense, if my ISP (cox) was blocking/filtering port 25, why would they only block/filter outgoing and not incoming because I can connect to my slack box remotely on port 25 and port 143
 
Old 04-07-2010, 11:20 AM   #11
Fujin
LQ Newbie
 
Registered: Apr 2010
Posts: 3

Rep: Reputation: 1
Quote:
Originally Posted by Sargalus View Post
this is what doesn't make sense, if my ISP (cox) was blocking/filtering port 25, why would they only block/filter outgoing and not incoming because I can connect to my slack box remotely on port 25 and port 143
The problem the ISP has is with you (or the spam software) sending mail from port 25 and clogging the Internet up, lowering the quality of service for most people.

They are not bothered if your computers are receiving requests on port 25. Most residential computers should have port 25 closed anyway, as they are not functioning as mail servers.

It's the same here. No outgoing port 25.
 
Old 04-07-2010, 11:21 AM   #12
Fujin
LQ Newbie
 
Registered: Apr 2010
Posts: 3

Rep: Reputation: 1
http://support.cox.com/sdccommon/asp...8-e6bb14c4329f

This should help.
 
Old 04-07-2010, 11:32 AM   #13
Sargalus
Member
 
Registered: Feb 2010
Location: Arizona
Distribution: Slackware 13.0
Posts: 106

Original Poster
Rep: Reputation: 16
Quote:
Originally Posted by Fujin View Post
thanks a lot for this post, it pretty much explains why im getting the issue that I am, so my question is now, how do I setup sendmail to use cox's smtp server to send out mail? or is that even possible?
 
Old 04-07-2010, 11:47 AM   #14
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
With Sendmail use the "SmartHost" feature in your sendmail.mc configuration. Search LQ for examples or see an ancient HOWTO here: http://www.linuxquestions.org/questi...-howto-210883/ (just ^F for "SMART_HOST").
 
Old 04-07-2010, 12:57 PM   #15
Sargalus
Member
 
Registered: Feb 2010
Location: Arizona
Distribution: Slackware 13.0
Posts: 106

Original Poster
Rep: Reputation: 16
Quote:
Originally Posted by unSpawn View Post
With Sendmail use the "SmartHost" feature in your sendmail.mc configuration. Search LQ for examples or see an ancient HOWTO here: http://www.linuxquestions.org/questi...-howto-210883/ (just ^F for "SMART_HOST").
Ok, I edited my sendmail*.mc file and edited the smarthost line like needed but sendmail is still not sending the mail that's in queue but when I look in /var/log/mail log all it shows is

Code:
Apr  7 10:49:24 requiem sm-mta[7018]: gethostbyaddr(192.168.1.101) failed: 1
Apr  7 10:49:24 requiem sm-mta[7019]: starting daemon (8.14.3): SMTP+queueing@00:25:00
Apr  7 10:49:24 requiem sm-msp-queue[7022]: starting daemon (8.14.3): queueing@00:25:00

Apr  7 10:51:38 requiem sendmail[7036]: gethostbyaddr(192.168.1.101) failed: 1
Apr  7 10:52:25 requiem sendmail[7038]: gethostbyaddr(192.168.1.101) failed: 1
EDIT:
Ignore this post as I have resolved the issue, I forgot to convert the changed .mc file to a new .cf file before restarting sendmail, issue is resolved thank you for everyons help and support

Last edited by Sargalus; 04-07-2010 at 01:21 PM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How to untar my tarred mail queue folder back to the sendmail queue directory again? Md.Abul Quashem Linux - Server 6 02-16-2010 08:32 AM
sendmail queue sajith Linux - Server 4 12-03-2008 04:33 AM
domain based mail queue processing sunethj Linux - Server 2 05-08-2008 08:34 PM
problem processing sendmail.mc to sendmail.cf ...help... lucastic Linux - Networking 1 09-21-2003 10:08 AM
sendmail queue visuelz Linux - Software 0 07-17-2003 11:39 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

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

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration