1 (edited by Thierry 2016-03-16 23:23:34)

Topic: Sending emails from a second server to iredmail

==== Required information ====
- iRedMail version (check /etc/iredmail-release): 0.9.3
- Linux/BSD distribution name and version: Linux Debian 8
- 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:  /var/log/mail.log
====

Hi,

I have installed a new server, and I need it to send regular emails ...
I am using on this server the tool: nullmailer

As config:

In remotes folder:

ip-email-server smtp --port=587 --starttls --user=user --pass=pass

On my logs from my Iredmail server:

Mar 16 16:16:13 zobe postfix/smtpd[9046]: lost connection after STARTTLS from unknown[ip_second_machine]
Mar 16 16:16:13 zobe postfix/smtpd[9046]: disconnect from unknown[ip_second_machine]
Mar 16 16:16:13 zobe postfix/smtpd[9046]: connect from unknown[ip_second_machine]
Mar 16 16:16:14 zobe postfix/smtpd[9046]: SSL_accept error from unknown[ip_second_machine]: Connection reset by peer
Mar 16 16:16:14 zobe postfix/smtpd[9046]: lost connection after STARTTLS from unknown[ip_second_machine]
Mar 16 16:16:14 zobe postfix/smtpd[9046]: disconnect from unknown[ip_second_machine]
Mar 16 16:16:14 zobe postfix/smtpd[9046]: connect from unknown[ip_second_machine]
Mar 16 16:16:14 zobe postfix/smtpd[9046]: SSL_accept error from unknown[ip_second_machine]: Connection reset by peer
Mar 16 16:16:14 zobe postfix/smtpd[9046]: lost connection after STARTTLS from unknown[ip_second_machine]
Mar 16 16:16:14 zobe postfix/smtpd[9046]: disconnect from unknown[ip_second_machine]
Mar 16 16:16:14 zobe postfix/smtpd[9046]: connect from unknown[ip_second_machine]
Mar 16 16:16:14 zobe postfix/smtpd[9046]: SSL_accept error from unknown[ip_second_machine]: Connection reset by peer
Mar 16 16:16:14 zobe postfix/smtpd[9046]: lost connection after STARTTLS from unknown[ip_second_machine]
Mar 16 16:16:14 zobe postfix/smtpd[9046]: disconnect from unknown[ip_second_machine]

Thx

----

Spider Email Archiver: On-Premises, lightweight email archiving software developed by iRedMail team. Supports Amazon S3 compatible storage and custom branding.

2

Re: Sending emails from a second server to iredmail

Thierry wrote:

Mar 16 16:16:14 zobe postfix/smtpd[9046]: SSL_accept error from unknown[ip_second_machine]: Connection reset by peer

It might be a good idea to turn on debug mode in your "nullmailer".

3

Re: Sending emails from a second server to iredmail

Is this the "nullmailer"?
https://github.com/bruceg/nullmailer

According to its description, it's a MTA (like Postfix), not a MUA (like Outlook, Thunderbird). I'm afraid that your usage might be wrong.

If you just want to send some email, you can try 'mailx', or just write a simple Python script (with builtin 'smtplib' module).

Reference: mailx http://www.binarytides.com/linux-mailx-command/