Jacek Osiecki
2014-Jan-13 08:56 UTC
[Dovecot] Sieve - not functioning for additional email aliases.
Hi, On one of my servers (old one, version 1.2.5) user reported that vacation message for basic address works fine, but not for the aliases. I know that this is an old version, but we can't simply switch them to the most current dovecot release without preparing and testing everything... So I'm rather asking for help with debugging the case :) This person has email my.name at olddomain.pl. However, they are switching to new domain - newdomain.pl - and it is becoming their main brand. So temporarily olddomain.pl is still their "home" domain, but there is a domain alias newdomain->olddomain. The sieve file is simple: forward message and reply with vacation: ---- require ["copy","vacation"]; # rule:[redirect] if anyof (true) { redirect :copy "my.boss at newdomain.pl"; vacation :days 1 :addresses ["my.name at olddomain.pl","my.name at newdomain.pl"] text: I'm unavailable now. Please contact my boss: my.boss at newdomain.pl Greetings . ; } ---- When I send email to my.name at olddomain.pl - it is sent to my.boss at newdomain.pl and I receive the vacation message. When I send it to the alias (my.name at newdomain.pl) - none of above is done. Any idea how I can debug it? Running test-sieve does not help - it claims that will simply forward and deliver the message... Greetings, -- Jacek Osiecki joshua at ceti.pl GG:3828944 I don't want something I need. I want something I want.
Axel Luttgens
2014-Jan-13 16:58 UTC
[Dovecot] Sieve - not functioning for additional email aliases.
Le 13 janv. 2014 ? 09:56, Jacek Osiecki a ?crit :> Hi, > > On one of my servers (old one, version 1.2.5) user reported that vacation message for basic address works fine, but not for the aliases. > > [...] > > Any idea how I can debug it? Running test-sieve does not help - it claims that will simply forward and deliver the message...Hello Jacek, You could try to add: mail_debug = yes to dovecot's configuration, and also have a look at the release notes for sieve: http://hg.rename-it.nl/dovecot-2.2-pigeonhole/raw-file/0.4.2/NEWS HTH, Axel
Steffen Kaiser
2014-Jan-14 07:58 UTC
[Dovecot] Sieve - not functioning for additional email aliases.
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Mon, 13 Jan 2014, Jacek Osiecki wrote:> The sieve file is simple: forward message and reply with vacation: > ---- > require ["copy","vacation"]; > # rule:[redirect] > if anyof (true) > { > redirect :copy "my.boss at newdomain.pl"; > vacation :days 1 :addresses > ["my.name at olddomain.pl","my.name at newdomain.pl"] text: > I'm unavailable now. > > Please contact my boss: my.boss at newdomain.pl > > Greetings > . > ; > } > ---- > > When I send email to my.name at olddomain.pl - it is sent to > my.boss at newdomain.pl and I receive the vacation message. > > When I send it to the alias (my.name at newdomain.pl) - none of above is done. > > Any idea how I can debug it? Running test-sieve does not help - it claims > that will simply forward and deliver the message...First, try to determine, if the Sieve script runs for newdomain at all, e.g. add a fileinto at the beginning of the script. Second, in v2 there is a dovecot.sieve.log file for Sieve error messages - not syntax, but processing errors. Maybe Sieve cannot send messages with my.name at newdomain.pl sender, check out mail log, too. - -- Steffen Kaiser -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.11 (GNU/Linux) iQEVAwUBUtTuNnD1/YhP6VMHAQLuYAf+LmBpZikSxTMM3IPGjf36FkBPfbNgOANn c8oyS43hv7io3+l7kRfjQZ+Awfb/ha2eYmYDefHNfV2jC+3vx1oPI+kNd8ZjXtqE V1ut/unFZISKVqmF639o2DhJQ51zzH+TM0hGFIuBwj9XBRctmRdCPZax3qfwTK3T ENIR7MYFqA0c+OswM27SVF4oqdi8bLWtLnRkyBW7s10l1o9e5Jh7P2PUCpPFrBOM v9cFoK8dr06/S0YBqkFZIr6I7/UG3h20KbcuFO0xZBN+nu74c/4xSq0Ys9mpKboK GGfP+VcXwPldITatbLRjqQd9vsTeU1JINAZ4Wf8Qr7FXHbz7siA01g==G9gE -----END PGP SIGNATURE-----