1

Topic: Receiving emails on iRedMail from another server with noreply address

==== Required information ====
- iRedMail version: 0.8.7
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): MySQL
- Linux/BSD distribution name and version: Debian 7 x64
- Related log if you're reporting an issue:
====

Hi all,

I have a problem with my iRedMail installation & the use of an external server.

I have iRedMail installed on mx.mydomain.com.
I have a dedicated server (web) on mydomain.com.
I have added the IP of my dedicated server to the mynetwork parameter of Postfix.

I wanted to send an email from my dedicated server (in PHP) using the "noreply@mydomain.com" sender, to for example "user@mydomain.com".

When my dedicated server send the email, my iRedMail rejects it because the the mailbox "noreply" doesn't exist :
Dec 31 15:14:13 mx1 postfix/smtpd[3815]: NOQUEUE: reject: RCPT from mydomain.com[X.X.X.X]: 550 5.1.0 <noreply@mydomain.com>: Sender address rejected: User unknown in virtual mailbox table; from=<noreply@mydomain.com> to=<user@mydomain.com> proto=ESMTP helo=<mydomain.com>


I can fix the issue by creating this account on iRedMail, but then users sending emails to noreply@mydomain.com will not receive delivery errors, and emails sent on this account will take some disk space with the time.

How can I deal with that?

Romain

----

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

2

Re: Receiving emails on iRedMail from another server with noreply address

I found 2 solutions :
- create noreply@mydomain.com address and disable it
- set Postfix parameter smtpd_reject_unlisted_sender = no

I've applied the second option.

If you have some advices on this, let me know smile

3

Re: Receiving emails on iRedMail from another server with noreply address

You chose the worse option.

Another way: create noreply@, keep it active, set per-user transport to 'discard' (to discard all received emails).

4 (edited by themen 2015-01-02 11:14:42)

Re: Receiving emails on iRedMail from another server with noreply address

Why my solution is the worst ?
What problem may I have in the future?

Your solution is working, but sender doesn't receive any error (non-delivery report), is it normal ?

5

Re: Receiving emails on iRedMail from another server with noreply address

themen wrote:

Why my solution is the worst ?
What problem may I have in the future?

No big issue with "smtpd_reject_unlisted_sender = no".

themen wrote:

Your solution is working, but sender doesn't receive any error (non-delivery report), is it normal ?

yes. Transport "discard" will silently discard received email.

6

Re: Receiving emails on iRedMail from another server with noreply address

Thanks for details. You can close this topic smile