Topic: iRedMail server relay access denied
==== Required information ====
- iRedMail version: 0.8.6
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): MySQL
- Linux/BSD distribution name and version: RedHat Linux 6.5
- Related log if you're reporting an issue:
====
Hi All,
I have setup and installed an in house mail server using iRedMail 0.8.6. Now I am trying to get another server which is hosting an application to relay mail through the iRedMail server. The application using is using sendmail which is configured to use the iRedMail server as the SMART_HOST. However I keep getting Relay access denied errors. I've played with the postfix configuration a little bit with no luck. Can someone point me in the right direction? Is there something is postfix config that needs to be set to allow it to be used as a relay that I'm just missing.
Output from the app server with confidential information X'd out.
[root@iwp41-lapps ~]# sendmail -Am -t -v
to:XXXXX@XXXXXXXXXXX.com
from:XXXXXXXXX@XXXXXXXXXXXXXX.com
This is a test. Ha ha ha
XXXXXX@XXXXXXXXXXXX.com... Connecting to mail.XXXXXXXXXXXXX.net. via relay...
220 mail.XXXXXXXXXXXXXXXXXXX.net ESMTP Postfix
>>> EHLO iwp41-lapps.XXXXXXXXXXXX.local
250-mail.XXXXXXXXXXXX.net
250-PIPELINING
250-SIZE 15728640
250-ETRN
250-STARTTLS
250-AUTH PLAIN LOGIN
250-AUTH=PLAIN LOGIN
250-ENHANCEDSTATUSCODES
250-8BITMIME
250 DSN
>>> STARTTLS
220 2.0.0 Ready to start TLS
>>> EHLO iwp41-lapps.XXXXXXXXXXXXXX.local
250-mail.XXXXXXXXXXXXXXX.net
250-PIPELINING
250-SIZE 15728640
250-ETRN
250-AUTH PLAIN LOGIN
250-AUTH=PLAIN LOGIN
250-ENHANCEDSTATUSCODES
250-8BITMIME
250 DSN
>>> MAIL From:<XXXXXX@iwp41-lapps.XXXXXXXXXXXXXXX.local> SIZE=83
250 2.1.0 Ok
>>> RCPT To:<XXXXXX@XXXXXXXXXXXXX.com>
>>> DATA
554 5.7.1 <XXXXXXX@XXXXXXXXXXXXXX.com>: Relay access denied
554 5.5.1 Error: no valid recipients
>>> RSET
250 2.0.0 Ok
XXXXXXX... Connecting to local...
XXXXXXX... Sent
Closing connection to mail.XXXXXXXXXXXXXXXXX.net.
>>> QUIT
221 2.0.0 Bye
----
Spider Email Archiver: On-Premises, lightweight email archiving software developed by iRedMail team. Supports Amazon S3 compatible storage and custom branding.