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