sieve redirect to foreign email gets “Relay access denied”

Henry Stack dovecot at zp1.net
Mon Sep 22 21:38:31 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 fromsender at live.de  <http://dovecot.org/cgi-bin/mailman/listinfo/dovecot>  for the local usertestuser at server.net  <http://dovecot.org/cgi-bin/mailman/listinfo/dovecot>  should be redirected to
/>/  destination at gmail.com  <http://dovecot.org/cgi-bin/mailman/listinfo/dovecot>  when the subject contains "redirect"
/>/  
/>/     if header :contains ["subject"] ["redirect"] {redirect
/>/     "destination at gmail.com  <http://dovecot.org/cgi-bin/mailman/listinfo/dovecot>"; 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  <http://dovecot.org/cgi-bin/mailman/listinfo/dovecot>>:
/>/     Relay access denied; from=<sender at live.de  <http://dovecot.org/cgi-bin/mailman/listinfo/dovecot>>
/>/     to=<destination at gmail.com  <http://dovecot.org/cgi-bin/mailman/listinfo/dovecot>> 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"

   
Thanks for the hint.

I tried it, I added the IP to mynetworks and it is still not working, still*Relay access denied;*

Henry



More information about the dovecot mailing list