Topic: Reconnecting on every email i send
==== Required information ====
- iRedMail version (check /etc/iredmail-release): 0.9.3
- Linux/BSD distribution name and version: FreeBSD 10.2
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): MySQL
- Web server (Apache or Nginx): Nginx
- Manage mail accounts with iRedAdmin-Pro? No
- Related log if you're reporting an issue: maillog
====
Hi
I have a new server working with iRedMail, and when i send newsletters, the log (/var/log/maillog) shows for every sent email:
Jan 25 16:52:06 mail postfix/smtpd[25755]: disconnect from xx.xx.xx.xx
Jan 25 16:52:06 mail postfix/smtpd[25755]: connect from xx.xx.xx.xx
.... (connect and send the email)
Jan 25 16:52:07 mail postfix/smtpd[25755]: disconnect from xx.xx.xx.xx
Jan 25 16:52:07 mail postfix/smtpd[25755]: connect from xx.xx.xx.xx
... (etc..)
The top command reveals:
PID USERNAME THR PRI NICE SIZE RES STATE C TIME WCPU COMMAND
73920 root 1 93 0 37508K 4296K CPU5 5 258:22 68.07% auth
23122 root 1 25 0 37508K 4512K kqread 6 0:38 2.98% auth
24099 root 1 25 0 37508K 4556K kqread 0 0:14 2.88% auth
24100 root 1 25 0 37508K 4552K kqread 1 0:11 2.88% auth
The problem is that the server is closing and opening a new session for every email sent. This happens on 25 and on 587 ports, and the newsletter software is connecting only once and iterating on send function only. The previous server (not postfix) took only half the time in sending the same newsletter, connecting only once and sending all emails without reconnecting.
How could i send the newsletters connecting only at the beginning?
Thank you, best regards
----
Spider Email Archiver: On-Premises, lightweight email archiving software developed by iRedMail team. Supports Amazon S3 compatible storage and custom branding.