1 (edited by SteveInAkron 2016-12-23 22:58:37)

Topic: Possible to relay from qMail server without login?

==== Required information ====
- iRedMail version (check /etc/iredmail-release): 0.9.2
- Linux/BSD distribution name and version: Ubuntu 14.04
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): MySQL
- Web server (Apache or Nginx):Nginx
- Manage mail accounts with iRedAdmin-Pro? Yes, v2.1.3 (MySQL)
====

There is a machine on the domain that is running a qmail server that I want to have relay through my server for  now until that web server and it's qmail server get retired.

I have added the IP of the qmail server to the mynetworks= directive in main.cf, but I get error messages like the following.

Log file from my server:

Dec 19 21:11:02 iredmail postfix/smtpd[6300]: connect from unknown[12.34.56.78]
Dec 19 21:11:02 iredmail postfix/smtpd[5874]: NOQUEUE: reject: RCPT from unknown[12.34.56.78]: 554 5.7.1 <a@hisdomain.com>: Recipient address rejected: Policy rejection not logged in; from=<auser@hisdomain.com> to=<anotheruser@hisdomain.com> proto=ESMTP helo=<web.network.net>

I do not host email for hisdomain.com, but I need to relay email from the website that is at the 12.34.56.78 IP. It appears to be a qMail server based on the rejection messages they are getting.

The 22.33.44.55 is the IP of my email server.

Error message from user:

Hi. This is the qmail-send program at web.network.net.
I'm afraid I wasn't able to deliver your message to the following addresses.
This is a permanent error; I've given up. Sorry it didn't work out.

<anotheruser@hisdomain.com>:
22.33.44.55 does not like recipient.
Remote host said: 554 5.7.1 <anotheruser@hisdomain.com>: Recipient address rejected: Policy rejection not logged in Giving up on 22.33.44.55

----

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

2

Re: Possible to relay from qMail server without login?

Add your qmail server IP address in /opt/iredapd/settings.py, like below:

MYNETWORKS = ['<ip_of_qmail_server>']

Restart iredapd service, then it should work.

3

Re: Possible to relay from qMail server without login?

SteveInAkron wrote:

...

I have added the IP of the qmail server to the mynetworks= directive in main.cf, but I get error messages like the following.

...

It's already there. It appears to be an issue when the email domain is not hosted on my server.

I thought of adding it as a backup mx records to see if that helped, but I do not know the actual accounts, just the domain.

4

Re: Possible to relay from qMail server without login?

SteveInAkron wrote:

It's already there. It appears to be an issue when the email domain is not hosted on my server.

Please upgrade iRedAPD to the latest iRedAPD-1.9.1, then try again. It should work as expected.
FYI: http://www.iredmail.org/docs/upgrade.iredapd.html

5 (edited by SteveInAkron 2016-12-24 11:43:27)

Re: Possible to relay from qMail server without login?

I'm still running IRedAPD 1.6.0 with Cluebringer.

EDIT: Changes made per http://www.iredmail.org/docs/manage.ire … m-settings

No rejections yet. I will keep watching the logs.