sieve redirect to foreign email gets “Relay access denied”

Reindl Harald h.reindl at thelounge.net
Mon Sep 22 20:24:24 UTC 2014



Am 22.09.2014 um 22:19 schrieb Henry Stack:
> I have a postfix mail server with sql authentication and I want to implement sieve on it.
> 
> Sieve is working relative good, rules who contain 'fileinto' are executed perfectly.
> The problem is the redirect to other servers.
> I configured a rule in Sieve to redirect any email containing "redirect" in subject to a specified foreign
> destination. #
> So practically a email coming from sender at live.de for the local user testuser at server.net should be redirected to
> destination at gmail.com when the subject contains "redirect"
> 
>    if header :contains ["subject"] ["redirect"] {redirect
>    "destination at gmail.com"; stop;}
> 
> when I test it I get the following log entry
> 
>    /postfix/smtpd[32114]: NOQUEUE: reject: RCPT from
>    mail.server.net[xx.xx.xx.xx]: 554 5.7.1 <destination at gmail.com>:
>    Relay access denied; from=<sender at live.de>
>    to=<destination at gmail.com> proto=ESMTP helo=<mail.server.net>

* you have "mynetworks = 127.0.0.0/8 [::ffff:127.0.0.0]/104 [::1]/128"
* you masked the IP so likely it's not 127.0.0.1
* just use your local MTA or add the machine to "mynetworks"

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 181 bytes
Desc: OpenPGP digital signature
URL: <http://dovecot.org/pipermail/dovecot/attachments/20140922/24b3efeb/attachment.sig>


More information about the dovecot mailing list