Sendmail sending very slowly...is this normal

Whether you are using Linux on the desktop or as a server, it's still good that you're using Linux. Linux related questions go here.

Moderator: General Moderators

Post Reply
User avatar
Kadanis
Forum Contributor
Posts: 180
Joined: Tue Jun 20, 2006 8:55 am
Location: Dorset, UK
Contact:

Sendmail sending very slowly...is this normal

Post by Kadanis »

Hi again,

Full of questions today.

Basically, the app I'm working on is for sending out mail to lists (don't worry they are legimate opt-in lists owned by the client), the app writes the mail templates for each recipient to a database, and then 1 of 3 separate SMTP servers collect a piece of the data table and start sending it.

The SMTP servers use Sendmail and PHPMailer classes. They are running Fedora Core 4. The emails tend to be between 500Kb and 1MB each (due to the content)

The problems that I am getting are that

1. The mails seem to be sending at around 1 every 5minutes, although the system is wrinting them to the SMTP at around 10 a second. All the unsent ones are just droping into the mail queue and doing nothing, until the queue is flushed manually.

The Sendmail delivery is set to Interactive so I would have thought the queue wouldn't be used....

2. The sending speed is a major issue. On a previous version of the application (not written by me), the SMTP runs a lot faster...

Any suggestions / comments would be welcome. I will try and answer any questions as best I can ;)

Thanks in advance.

UPDATE: From what I can tell, while watching a test send, it appears to be retrying any failed send numerous times. Is there anyway to turn off the retry after any fail?
User avatar
dude81
Forum Regular
Posts: 509
Joined: Mon Aug 29, 2005 6:26 am
Location: Pearls City

Post by dude81 »

Look at PHP mailer classes, if it has sendmail function(which is slow in action compartively to Linux), it probably could be the reason as even I faced when I used. Try to search for sending mails through fsockopen and stuff.
It will do much faster than php sendmail
inn3rflow
Forum Newbie
Posts: 2
Joined: Thu Feb 01, 2007 11:45 am

Post by inn3rflow »

Make sure that the originating domain of the address that you are sending:

a) exists and has a valid and responding nameserver
b) exists in /etc/hosts
c) exists in /etc/mail/local-host-names

I had a problem where sendmail would lag for specific hostnames. It turned out that the hostname no longer in the nameserver.

http://inn3rflow.blogspot.com
Post Reply