1

Topic: Relay sieve forward and autorespond via local relay

==== Required information ====
- iRedMail version (check /etc/iredmail-release): 0.9.2
- Linux/BSD distribution name and version: CentOS 6.5
- 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: sieve.log
====

Hi,

Currently, i have a smarthost setup on postfix for all outgoing mails.

Is there anyway i can have the local SMTP relay to send emails related to sieve forward and autorespond?

Thanks

----

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

2 (edited by Frankstar 2016-04-25 06:27:32)

Re: Relay sieve forward and autorespond via local relay

Postfix relayhost doesn't send local mail to the relayhost normally:

From postfix.org

relayhost (default: empty)

The next-hop destination of non-local mail; overrides non-local domains in recipient addresses. This information is overruled with relay_transport, sender_dependent_default_transport_maps, default_transport, sender_dependent_relayhost_maps and with the transport(5) table.

So if it is happenning, it is because your local mail is not identified as local. You need to include your local domain in mydestination = config line.
If you don't have defined a local domain, I think (needs testing) if you only add 127.0.0.1 localhost.localdomain localhost in your etc/hosts file and add localhost.localdomain to mydestination= it should be sufficient.