LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
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 07-13-2018, 08:01 AM   #1
Mario Lima
LQ Newbie
 
Registered: Mar 2018
Posts: 22

Rep: Reputation: Disabled
Question Great delay when sending emails


Hi, fellows,

I have a Linux Centos Server, running Apache, Postfix, Dovecot, Postgrey, Amavis, Spamassassin and all the normal stuff. It is the POP / SMTP Server for all of our customers' accounts.

Our customers (and we too) have realized that whenever they sent an email, through any mail client program (Outlook, Eudora, Thunderbird, no matter if it is from a Windows or Linux environment), that initial time to connect, auth, login, is being very very delayed. Sometimes it even goes into time out. And when this happens, normally the CPU times are quite good, no overload.

Could it be any parameter setting at /etc/postfix/main.cf or other System files, that should be more accurate and better tuned?

I am not so skillful in Linux, but I have total access to all the System files at this Server. I thank you in advance for any help or hint.

Mario Lima./
 
Old 07-13-2018, 09:19 AM   #2
scasey
LQ Veteran
 
Registered: Feb 2013
Location: Tucson, AZ, USA
Distribution: CentOS 7.9.2009
Posts: 5,725

Rep: Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211
Don't know much about postfix...I'm sure other's will jump in there...but,
To what port are you having your customers connect to send mail?
What tells you/indicates that there is a delay?
 
Old 07-13-2018, 09:59 AM   #3
Mario Lima
LQ Newbie
 
Registered: Mar 2018
Posts: 22

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by scasey View Post
Don't know much about postfix...I'm sure other's will jump in there...but,
To what port are you having your customers connect to send mail?
What tells you/indicates that there is a delay?
Hi, scasey. They connect to Ports 110 (POP) and 587 (SMTP). I compare this Server to another I have, exactly like this, in the same Hosting service and network. Sometimes, to send a simple email just saying "Hello", no attachments, it delays until 2 minutes.
 
Old 07-14-2018, 11:18 PM   #4
ilesterg
Member
 
Registered: Jul 2012
Location: München
Distribution: Debian, CentOS/RHEL
Posts: 587

Rep: Reputation: 72
Quote:
Originally Posted by Mario Lima View Post
Hi, scasey. They connect to Ports 110 (POP) and 587 (SMTP). I compare this Server to another I have, exactly like this, in the same Hosting service and network. Sometimes, to send a simple email just saying "Hello", no attachments, it delays until 2 minutes.
Where is the delay exactly? From when the email goes from Outbox to Sent folder?
 
Old 07-15-2018, 05:22 AM   #5
Mario Lima
LQ Newbie
 
Registered: Mar 2018
Posts: 22

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by ilesterg View Post
Where is the delay exactly? From when the email goes from Outbox to Sent folder?
Hi, ilesterg, yes, exactly.
 
Old 07-23-2018, 09:48 PM   #6
ilesterg
Member
 
Registered: Jul 2012
Location: München
Distribution: Debian, CentOS/RHEL
Posts: 587

Rep: Reputation: 72
Do a live test and see what's being logged in /var/log/maillog and how fast things happen. You'd be interested with the time the connection is received by postfix from the client, the time it sent the message to the relay, and so on. That would at least give you a broad idea of where the bottleneck happens.
 
Old 07-26-2018, 06:06 AM   #7
Mario Lima
LQ Newbie
 
Registered: Mar 2018
Posts: 22

Original Poster
Rep: Reputation: Disabled
Hi, ilesterg,

I did it. I use an ancient email program called Eudora, and it shows in a Window the sending process steps.

The first step is always "Connecting to..." the Smtp Server. I was looking at this Server's maillog with tail command. After this it does the AUTH / LOGIN process, and only from this point on the Server's maillog registers something. As a matter of fact the longest delay time is during the "Connecting to" process.

Detail: I have another Server, hosted at this same ISP, and whenever I sent emails through it, I don't have this long delay time.

What could it mean?
 
Old 07-27-2018, 04:05 PM   #8
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,163
Blog Entries: 1

Rep: Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032
Quote:
Originally Posted by Mario Lima View Post
Hi, ilesterg,

I did it. I use an ancient email program called Eudora, and it shows in a Window the sending process steps.

The first step is always "Connecting to..." the Smtp Server. I was looking at this Server's maillog with tail command. After this it does the AUTH / LOGIN process, and only from this point on the Server's maillog registers something. As a matter of fact the longest delay time is during the "Connecting to" process.

Detail: I have another Server, hosted at this same ISP, and whenever I sent emails through it, I don't have this long delay time.

What could it mean?
Could be a dns related problem, meaning that the name resolution takes too long.
Use the same nameservers for your mail server (in /etc/resolv.conf), as those of the second server and see if it helps.
 
Old 07-27-2018, 06:14 PM   #9
Mario Lima
LQ Newbie
 
Registered: Mar 2018
Posts: 22

Original Poster
Rep: Reputation: Disabled
Hi, bathory, great, this is a good idea. I will check it with the Provider.
 
Old 07-27-2018, 07:03 PM   #10
Mario Lima
LQ Newbie
 
Registered: Mar 2018
Posts: 22

Original Poster
Rep: Reputation: Disabled
bathory, we altered using for both the Google Servers Name, 8.8.8.8 and 8.8.4.4. It seems we had an improvement. I'll be sure about his on next week. Thanks a lot.
 
  


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
emails are not sending nibraz Linux - Server 4 06-15-2014 04:59 PM
Delay emails, PHP delivery dlublink Linux - Software 1 06-01-2006 09:51 AM
Sending Emails yos123 Linux - General 1 04-12-2006 09:56 AM
Sending Emails Dragons_Way Linux - Software 2 03-09-2005 02:53 AM
sendmail delay with outgoing emails Stefanie71 Linux - Newbie 1 06-30-2004 03:26 PM

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

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