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 sen...@live.de for the local user 
> testu...@server.net should be redirected to
> destinat...@gmail.com when the subject contains "redirect"
> 
>    if header :contains ["subject"] ["redirect"] {redirect
>    "destinat...@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 <destinat...@gmail.com>:
>    Relay access denied; from=<sen...@live.de>
>    to=<destinat...@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"

Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to