sieve redirect to foreign email gets “Relay access denied”
Reindl Harald
h.reindl at thelounge.net
Mon Sep 22 21:50:21 UTC 2014
Am 22.09.2014 um 23:38 schrieb Henry Stack:
> 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 <http://dovecot.org/cgi-bin/mailman/listinfo/dovecot> for the local user testuser 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;*
you need to provide more informations about your setup and if possible
avoid mask IP addresses - where does the smtpd live, where is dovecot
and how did you configure the relay at all
what postfix version?
in case of a recent version -> smtpd_relay_restrictions is configured?
-------------- 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/1a105c3c/attachment-0001.sig>
More information about the dovecot
mailing list