LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 04-09-2010, 01:03 AM   #1
k_oudom
Member
 
Registered: Aug 2009
Posts: 293

Rep: Reputation: 30
Email Send Timeout


The server is CentOS 5.3 ISPConfig 3. I try to send big email out with slow internet connection. I check log file. It say "timeout = 300". I think the message send take longer than maximum time. Can anyone please tell me where can I change maximum timeout?
 
Old 04-09-2010, 07:06 PM   #2
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
If you read http://www.sendmail.org/m4/tweaking_config.html and ^F for "timeout" you'll find all the sendmail.mc configuration options wrt timeouts, their default values and an explanation. However sending overly large files over s slow line is asking for trouble and tweaking your configuration may prove to be no panacea. If possible use compression and attachment chunking.
 
Old 04-28-2010, 02:35 AM   #3
k_oudom
Member
 
Registered: Aug 2009
Posts: 293

Original Poster
Rep: Reputation: 30
I'm not using sendmail as smtp. I'm using postfix. Outgoing email always fail to deliver if it is big(about 1.7MB. about 1MB is ok). I can see that outgoing traffic increase after I click send email. That mean email was sending but it seem not complete. I think because it took too long since my slow internet speed. I think it reach maximum sending timeout of postfix. I want to try increasing maximum sending timeout. Please tell me where I can find this option.
 
Old 04-28-2010, 03:01 AM   #4
EricTRA
LQ Guru
 
Registered: May 2009
Location: Gibraltar, Gibraltar
Distribution: Fedora 20 with Awesome WM
Posts: 6,805
Blog Entries: 1

Rep: Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297
Hello Rex,

In a console run:
Code:
postconf | grep timeout
That will show you all the timeout settings. Then you can reference them against this page: Postfix configuration parameters to find out which to change. Some of them affect other changes as well or have to coincide with other parameters, so read carefully.

I also noticed some message limit parameters in that page, maybe look at them too.

Kind regards,

Eric
 
Old 04-28-2010, 03:24 AM   #5
k_oudom
Member
 
Registered: Aug 2009
Posts: 293

Original Poster
Rep: Reputation: 30
There are a lot of timeout option. Which one do you think are the best for above problem?
 
Old 04-28-2010, 03:39 AM   #6
EricTRA
LQ Guru
 
Registered: May 2009
Location: Gibraltar, Gibraltar
Distribution: Fedora 20 with Awesome WM
Posts: 6,805
Blog Entries: 1

Rep: Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297
Hello,

I'm not 'the Postfix expert' but thinking logically and doing some deduction you should be able to find which parameter to change. Since you state that in your log it mentions "timeout = 300", you can change the postconf command as such:
Code:
postconf | grep "timeout = 300"
which in my standard Postfix install gives me 16 lines. Check the previously posted link to see what they are. In my opinion I'd try changing this one
Code:
qmqpd_timeout
since is states in the configuration page:
Quote:
The time limit for sending or receiving information over the network. If a read or write operation blocks for more than $qmqpd_timeout seconds the QMQP server gives up and disconnects.
If that one doesn't work you'll have to play with the other settings, change one at the time, restart postfix, send a mail with a big attachment and see what the result is.

Kind regards,

Eric
 
Old 04-28-2010, 09:15 PM   #7
k_oudom
Member
 
Registered: Aug 2009
Posts: 293

Original Poster
Rep: Reputation: 30
How do I modify those setting? I have tried to add them to bottom line of main.cf because I can't find it using search function. I'm not sure if I did it right. I have added qmqpd_timeout, smtpd_timeout, smtp_mail_timeout = 10s, restart postfix and sent email with attachment but the email still reach recipient. So this setting is not correct. Hmm, What should I do?
 
Old 04-29-2010, 12:09 AM   #8
EricTRA
LQ Guru
 
Registered: May 2009
Location: Gibraltar, Gibraltar
Distribution: Fedora 20 with Awesome WM
Posts: 6,805
Blog Entries: 1

Rep: Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297
Hello,

If those settings didn't give you any solution then better set them back to default (remove them from the main.cf) and restart postfix. There are more than three settings so play with the other ones to see if any of them have effect. Again, I'm not the Postfix specialist, but that's the way I would do it, try. On the other hand, do you have this problem with ANY mail with an attachment bigger than 1 Mb or is it recipient specific?

Kind regards,

Eric
 
Old 04-29-2010, 11:02 PM   #9
k_oudom
Member
 
Registered: Aug 2009
Posts: 293

Original Poster
Rep: Reputation: 30
Around 1mb email could send out but bigger than 1.7mb will not send out.
 
Old 04-29-2010, 11:28 PM   #10
EricTRA
LQ Guru
 
Registered: May 2009
Location: Gibraltar, Gibraltar
Distribution: Fedora 20 with Awesome WM
Posts: 6,805
Blog Entries: 1

Rep: Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297
Hi,

Is that to any email address you send to? Or just to specific ones. It might be that on the other side the admin has put in some limits on his server.

Kind regards,

Eric
 
Old 04-30-2010, 03:20 AM   #11
k_oudom
Member
 
Registered: Aug 2009
Posts: 293

Original Poster
Rep: Reputation: 30
No, I sent to Yahoo.
 
Old 04-30-2010, 03:33 AM   #12
EricTRA
LQ Guru
 
Registered: May 2009
Location: Gibraltar, Gibraltar
Distribution: Fedora 20 with Awesome WM
Posts: 6,805
Blog Entries: 1

Rep: Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297
Hello,

As far as I've found on the internet Yahoo has a limit of 20Mb so that should not be problem. Have you tried changing all the limits one by one yet? Restarting the service after every one and trying to send a mail?

Kind regards,

Eric
 
  


Reply



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
Perl email::send.. how to send the email? hawk__0 Programming 6 12-24-2009 01:53 PM
Send mail to root but it send to other email smart_jija Solaris / OpenSolaris 5 07-01-2009 01:33 AM
Send email to specific SMTP servers per email from my server? neilius Linux - Server 6 06-25-2009 06:31 AM
Apache virtual host send email without email server SibLiant Linux - Software 6 06-03-2009 09:46 PM
Allowing an IP to send email using my email server... culprit Linux - Networking 7 09-09-2003 12:24 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 10:21 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