Hi, i'm new on sieve, but want to use ist with sogo. The Problem is, that when i set a redirect or vacation rule like: redirect "email at example.com"; (real Adress is different) the sieve says the mail would be forwarded, but no mail is sent. (No Action in /var/log/maillog) And because there is no Error-Message it's difficult to search for... Dovecot log ------- Jan 28 10:53:46 lda(ptest at pilarkto.com): Debug: sieve: using sieve path for user's script: /var/mail/vhosts/test/.dovecot.sieve Jan 28 10:53:46 lda(ptest at pilarkto.com): Debug: sieve: opening script /var/mail/vhosts/test/.dovecot.sieve Jan 28 10:53:46 lda(ptest at pilarkto.com): Debug: sieve: script binary /var/mail/vhosts/test/.dovecot.svbin successfully loaded Jan 28 10:53:46 lda(ptest at pilarkto.com): Debug: sieve: binary save: not saving binary /var/mail/vhosts/test/.dovecot.svbin, because it is already stored Jan 28 10:53:46 lda(ptest at pilarkto.com): Debug: sieve: executing script from /var/mail/vhosts/test/.dovecot.svbin Jan 28 10:53:46 lda(ptest at pilarkto.com): Info: sieve: msgid=<4D429227.3000004 at pilarkto.net>: forwarded to <email at example.com> ----- Everything else works fine, except the program "mail". I dont know if there is a coherence but a typical Mailserver-Test "date|mail -s test email at example.com" also don't sent a message to postfix. I hope you will held me out or even say me, if this is a bug or a misconfiguration. thanks a lot Philipp
* Philipp v. Strobl-Albeg <philipp at pilarkto.net>:> Everything else works fine, except the program "mail". I dont know if > there is a coherence but a typical Mailserver-Test "date|mail -s test > email at example.com" also don't sent a message to postfix.find / -name sendmail what is the output? -- Ralf Hildebrandt Gesch?ftsbereich IT | Abteilung Netzwerk Charit? - Universit?tsmedizin Berlin Campus Benjamin Franklin Hindenburgdamm 30 | D-12203 Berlin Tel. +49 30 450 570 155 | Fax: +49 30 450 570 962 ralf.hildebrandt at charite.de | http://www.charite.de
Hi, thank you for all of your quick response. diff of the binaries brought nothing, because they are the same. Both are symlinks to sendmail.postfix ll /usr/sbin/sendmail lrwxrwxrwx 1 root root 21 Apr 16 2010 /usr/sbin/sendmail -> /etc/alternatives/mta ll /usr/lib/sendmail lrwxrwxrwx 1 root root 30 Apr 16 2010 /usr/lib/sendmail -> /etc/alternatives/mta-sendmail ll /etc/alternatives/mta* lrwxrwxrwx 1 root root 26 Apr 17 2010 /etc/alternatives/mta -> /usr/sbin/sendmail.postfix lrwxrwxrwx 1 root root 40 Apr 17 2010 /etc/alternatives/mta-aliasesman -> /usr/share/man/man5/aliases.postfix.5.gz lrwxrwxrwx 1 root root 22 Apr 17 2010 /etc/alternatives/mta-mailq -> /usr/bin/mailq.postfix lrwxrwxrwx 1 root root 38 Apr 17 2010 /etc/alternatives/mta-mailqman -> /usr/share/man/man1/mailq.postfix.1.gz lrwxrwxrwx 1 root root 27 Apr 17 2010 /etc/alternatives/mta-newaliases -> /usr/bin/newaliases.postfix lrwxrwxrwx 1 root root 43 Apr 17 2010 /etc/alternatives/mta-newaliasesman -> /usr/share/man/man1/newaliases.postfix.1.gz lrwxrwxrwx 1 root root 23 Apr 17 2010 /etc/alternatives/mta-pam -> /etc/pam.d/smtp.postfix lrwxrwxrwx 1 root root 22 Apr 17 2010 /etc/alternatives/mta-rmail -> /usr/bin/rmail.postfix lrwxrwxrwx 1 root root 25 Apr 17 2010 /etc/alternatives/mta-sendmail -> /usr/lib/sendmail.postfix lrwxrwxrwx 1 root root 41 Apr 17 2010 /etc/alternatives/mta-sendmailman -> /usr/share/man/man1/sendmail.postfix.1.gz The sendmail test-message (with parameter -vv) brings: postdrop: fifo_trigger: open public/pickup: cannot open file: No such device or address This error also appear by executing "postqueue -f". but i can not see where ll /var/spool/postfix/public/ total 20K srw-rw-rw- 1 postfix postfix 0 Jan 28 18:49 cleanup srw-rw-rw- 1 postfix postfix 0 Jan 28 18:49 flush prw--w--w- 1 postfix postfix 0 Jan 23 17:55 pickup prw--w--w- 1 postfix postfix 0 Jan 28 19:05 qmgr srw-rw-rw- 1 postfix postfix 0 Jan 28 18:49 showq and ll /var/spool/postfix/ total 140K drwx------ 2 postfix root 12K Jan 28 19:05 active drwx------ 2 postfix root 4.0K Jan 28 13:23 bounce drwx------ 2 postfix root 4.0K Aug 14 2008 corrupt drwx------ 18 postfix root 4.0K Apr 22 2010 defer drwx------ 18 postfix root 4.0K Apr 22 2010 deferred drwx------ 2 postfix root 4.0K Apr 22 2010 flush drwx------ 2 postfix root 4.0K Aug 14 2008 hold drwx------ 2 postfix root 12K Jan 28 19:05 incoming drwx-wx--- 2 postfix postdrop 4.0K Jan 28 19:00 maildrop drwxr-xr-x 2 root root 4.0K Jan 23 18:03 pid drwx------ 2 postfix root 4.0K Jan 28 18:49 private drwx--x--- 2 postfix postdrop 4.0K Jan 28 18:49 public drwx------ 2 postfix root 4.0K Aug 14 2008 saved -rw------- 1 root root 8.0K Jan 28 18:51 smtp_scache.db drwx------ 2 postfix root 4.0K Aug 14 2008 trace So root has not the ability to access the public-folder. Is that normal for postfix-2.3.3 ? Perhaps same users (dovecot, root ...) has to be in the postdrop group, but what is about the security with that issue ? Kindly regards and many thanks Philipp Am 28.01.2011 11:32, schrieb Ralf Hildebrandt:> * Holger Mauermann<holger at mauermann.org>: > >>> find / -name sendmail Output: >>> >>> /etc/webmin/sendmail >>> /usr/libexec/webmin/blue-theme/sendmail >>> /usr/libexec/webmin/caldera/sendmail >>> /usr/libexec/webmin/sendmail >>> /usr/libexec/webmin/mscstyle3/sendmail >>> /usr/sbin/sendmail >>> /usr/lib/sendmail >> Try >> >> echo "Subject: Test" | /usr/sbin/sendmail email at example.com >> >> and watch your sendmail log. > And of course: > echo "Subject: Test" | /usr/lib/sendmail email at example.com > > one of the two will be the right one.-- Philipp v. Strobl-Albeg - PILAKRTO NETWORKS - Mobil +49 151 270 39710 http://www.pilarkto.net
Hi, the trick was the "pickup" service in the postfix/master.cf For some unknown reason this line was deleted. Now with: pickup fifo n - - 60 1 pickup everythink works perfectly now. (even the sieve delivery) Thanks a lot again and have fun with Open Source Philipp Am 28.01.2011 19:10, schrieb Philipp Strobl:> Hi, > > thank you for all of your quick response. > > diff of the binaries brought nothing, because they are the same. > Both are symlinks to sendmail.postfix > > ll /usr/sbin/sendmail > lrwxrwxrwx 1 root root 21 Apr 16 2010 /usr/sbin/sendmail -> > /etc/alternatives/mta > > ll /usr/lib/sendmail > lrwxrwxrwx 1 root root 30 Apr 16 2010 /usr/lib/sendmail -> > /etc/alternatives/mta-sendmail > > ll /etc/alternatives/mta* > lrwxrwxrwx 1 root root 26 Apr 17 2010 /etc/alternatives/mta -> > /usr/sbin/sendmail.postfix > lrwxrwxrwx 1 root root 40 Apr 17 2010 > /etc/alternatives/mta-aliasesman -> > /usr/share/man/man5/aliases.postfix.5.gz > lrwxrwxrwx 1 root root 22 Apr 17 2010 /etc/alternatives/mta-mailq -> > /usr/bin/mailq.postfix > lrwxrwxrwx 1 root root 38 Apr 17 2010 /etc/alternatives/mta-mailqman > -> /usr/share/man/man1/mailq.postfix.1.gz > lrwxrwxrwx 1 root root 27 Apr 17 2010 > /etc/alternatives/mta-newaliases -> /usr/bin/newaliases.postfix > lrwxrwxrwx 1 root root 43 Apr 17 2010 > /etc/alternatives/mta-newaliasesman -> > /usr/share/man/man1/newaliases.postfix.1.gz > lrwxrwxrwx 1 root root 23 Apr 17 2010 /etc/alternatives/mta-pam -> > /etc/pam.d/smtp.postfix > lrwxrwxrwx 1 root root 22 Apr 17 2010 /etc/alternatives/mta-rmail -> > /usr/bin/rmail.postfix > lrwxrwxrwx 1 root root 25 Apr 17 2010 /etc/alternatives/mta-sendmail > -> /usr/lib/sendmail.postfix > lrwxrwxrwx 1 root root 41 Apr 17 2010 > /etc/alternatives/mta-sendmailman -> > /usr/share/man/man1/sendmail.postfix.1.gz > > The sendmail test-message (with parameter -vv) brings: > postdrop: fifo_trigger: open public/pickup: cannot open file: No such > device or address > > This error also appear by executing "postqueue -f". > but i can not see where > > ll /var/spool/postfix/public/ > total 20K > srw-rw-rw- 1 postfix postfix 0 Jan 28 18:49 cleanup > srw-rw-rw- 1 postfix postfix 0 Jan 28 18:49 flush > prw--w--w- 1 postfix postfix 0 Jan 23 17:55 pickup > prw--w--w- 1 postfix postfix 0 Jan 28 19:05 qmgr > srw-rw-rw- 1 postfix postfix 0 Jan 28 18:49 showq > > and > ll /var/spool/postfix/ > total 140K > drwx------ 2 postfix root 12K Jan 28 19:05 active > drwx------ 2 postfix root 4.0K Jan 28 13:23 bounce > drwx------ 2 postfix root 4.0K Aug 14 2008 corrupt > drwx------ 18 postfix root 4.0K Apr 22 2010 defer > drwx------ 18 postfix root 4.0K Apr 22 2010 deferred > drwx------ 2 postfix root 4.0K Apr 22 2010 flush > drwx------ 2 postfix root 4.0K Aug 14 2008 hold > drwx------ 2 postfix root 12K Jan 28 19:05 incoming > drwx-wx--- 2 postfix postdrop 4.0K Jan 28 19:00 maildrop > drwxr-xr-x 2 root root 4.0K Jan 23 18:03 pid > drwx------ 2 postfix root 4.0K Jan 28 18:49 private > drwx--x--- 2 postfix postdrop 4.0K Jan 28 18:49 public > drwx------ 2 postfix root 4.0K Aug 14 2008 saved > -rw------- 1 root root 8.0K Jan 28 18:51 smtp_scache.db > drwx------ 2 postfix root 4.0K Aug 14 2008 trace > > So root has not the ability to access the public-folder. > Is that normal for postfix-2.3.3 ? > > Perhaps same users (dovecot, root ...) has to be in the postdrop > group, but what is about the security with that issue ? > > > Kindly regards and many thanks > Philipp > > > > Am 28.01.2011 11:32, schrieb Ralf Hildebrandt: >> * Holger Mauermann<holger at mauermann.org>: >> >>>> find / -name sendmail Output: >>>> >>>> /etc/webmin/sendmail >>>> /usr/libexec/webmin/blue-theme/sendmail >>>> /usr/libexec/webmin/caldera/sendmail >>>> /usr/libexec/webmin/sendmail >>>> /usr/libexec/webmin/mscstyle3/sendmail >>>> /usr/sbin/sendmail >>>> /usr/lib/sendmail >>> Try >>> >>> echo "Subject: Test" | /usr/sbin/sendmail email at example.com >>> >>> and watch your sendmail log. >> And of course: >> echo "Subject: Test" | /usr/lib/sendmail email at example.com >> >> one of the two will be the right one. > >-- Philipp v. Strobl-Albeg - PILAKRTO NETWORKS - Mobil +49 151 270 39710 http://www.pilarkto.net