-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Sorry to bring this up again. I have now configured my test server to pass all email messages off to our central campus email filter gateway. This gateway scans all email traffic for viruses/spam before being delivered to any local mail servers. Once I did this my auto vacation replies are getting canned due to the fact the from header line is empty in the reply message. You can see that it is empty from my mail logs (soon after the line where is executes my .dovecot.sievec file): Aug 11 13:24:51 mail2.engr.colostate.edu dovecot: [ID 107833 mail.info] auth(default): new auth connection: pid=15539 Aug 11 13:24:51 mail2.engr.colostate.edu postfix/smtpd[15539]: [ID 197553 mail.info] connect from akron.colostate.edu[129.82.103.160] Aug 11 13:24:52 mail2.engr.colostate.edu postfix/smtpd[15539]: [ID 197553 mail.info] setting up TLS connection from akron.colostate.edu[129.82.103.160] Aug 11 13:24:52 mail2.engr.colostate.edu postfix/smtpd[15539]: [ID 197553 mail.info] Anonymous TLS connection established from akron.colostate.edu[129.82.103.160]: TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits) Aug 11 13:24:53 mail2.engr.colostate.edu postfix/smtpd[15539]: [ID 197553 mail.info] 44DEC599C3: client=akron.colostate.edu[129.82.103.160] Aug 11 13:24:53 mail2.engr.colostate.edu postfix/cleanup[15547]: [ID 197553 mail.info] 44DEC599C3: message-id=<f57f300811e59cd8ad787c582485f6b9.squirrel at webmail.engr.colostate.edu> Aug 11 13:24:53 mail2.engr.colostate.edu postfix/smtpd[15539]: [ID 197553 mail.info] disconnect from akron.colostate.edu[129.82.103.160] Aug 11 13:24:53 mail2.engr.colostate.edu postfix/qmgr[15988]: [ID 197553 mail.info] 44DEC599C3: from=<joeblow at engr.colostate.edu>, size=1875, nrcpt=1 (queue active) Aug 11 13:24:53 mail2.engr.colostate.edu deliver(cjay): [ID 315030 mail.info] Loading modules from directory: /userM/mail-services/dovecot/lib/dovecot/lda Aug 11 13:24:53 mail2.engr.colostate.edu deliver(cjay): [ID 619685 mail.info] Module loaded: /userM/mail-services/dovecot/lib/dovecot/lda/lib90_cmusieve_plugin.so Aug 11 13:24:53 mail2.engr.colostate.edu deliver(cjay): [ID 848615 mail.info] mbox: data=/top/admin/ENS/people/cjay/home/:INBOX=/userM/mail/cjay Aug 11 13:24:53 mail2.engr.colostate.edu deliver(cjay): [ID 885103 mail.info] fs: root=/top/admin/ENS/people/cjay/home, index=, control=, inbox=/userM/mail/cjay Aug 11 13:24:53 mail2.engr.colostate.edu deliver(cjay): [ID 223526 mail.info] cmusieve: Using sieve path: /top/admin/ENS/people/cjay/home/.dovecot.sieve Aug 11 13:24:54 mail2.engr.colostate.edu deliver(cjay): [ID 507699 mail.info] cmusieve: Executing script /top/admin/ENS/people/cjay/home/.dovecot.sievec Aug 11 13:24:54 mail2.engr.colostate.edu deliver(cjay): [ID 725890 mail.info] msgid=<f57f300811e59cd8ad787c582485f6b9.squirrel at webmail.engr.colostate.edu>: sent vacation response to <joeblow at engr.colostate.edu> Aug 11 13:24:54 mail2.engr.colostate.edu postfix/pickup[13201]: [ID 197553 mail.info] B9798599C5: uid=10946 from=<> Aug 11 13:24:54 mail2.engr.colostate.edu postfix/cleanup[15547]: [ID 197553 mail.info] B9798599C5: message-id=<dovecot-1218482693-706158-0 at mail2.engr.colostate.edu> Aug 11 13:24:54 mail2.engr.colostate.edu postfix/qmgr[15988]: [ID 197553 mail.info] B9798599C5: from=<>, size=772, nrcpt=1 (queue active) Aug 11 13:24:55 mail2.engr.colostate.edu deliver(cjay): [ID 702911 mail.info] msgid=<f57f300811e59cd8ad787c582485f6b9.squirrel at webmail.engr.colostate.edu>: saved mail to INBOX Aug 11 13:24:55 mail2.engr.colostate.edu postfix/smtp[15555]: [ID 197553 mail.info] B9798599C5: to=<joeblow at engr.colostate.edu>, relay=parker.colostate.edu[129.82.103.125]:25, delay=0.89, delays=0.09/0.51/0.03/0.25, dsn=2.0.0, status=sent (250 2.0.0 m7BJOur1516324 Message accepted for delivery) Aug 11 13:24:55 mail2.engr.colostate.edu postfix/qmgr[15988]: [ID 197553 mail.info] B9798599C5: removed Aug 11 13:24:55 mail2.engr.colostate.edu postfix/local[15549]: [ID 197553 mail.info] 44DEC599C3: to=<cjay at engr2.colostate.edu>, relay=local, delay=2.7, delays=0.26/0.19/0/2.2, dsn=2.0.0, status=sent (delivered to command: /userM/mail-services/dovecot/libexec/dovecot/deliver) Aug 11 13:24:55 mail2.engr.colostate.edu postfix/qmgr[15988]: [ID 197553 mail.info] 44DEC599C3: removed Again, my info: OS: Solaris 10 sparc on T2000 postfix: 2.5.2 dovecot: 1.1.2 sieve plug: 1.1.5 dovecot -n: # 1.1.2: /userM/mail-services/dovecot/etc/dovecot.conf Warning: fd limit 256 is lower than what Dovecot can use under full load (more than 3072). Either grow the limit or change login_max_processes_count and max_mail_processes settings base_dir: /userM/mail-services/dovecot/var/run/dovecot/ protocols: imap imaps pop3 pop3s ssl_cert_file: /userM/mail-services/dovecot/etc/ssl/dovecot.pem ssl_key_file: /userM/mail-services/dovecot/etc/ssl/privkey.pem ssl_parameters_regenerate: 0 ssl_cipher_list: MEDIUM:!LOW disable_plaintext_auth: no login_dir: /userM/mail-services/dovecot/var/run/dovecot/login login_executable(default): /userM/mail-services/dovecot/libexec/dovecot/imap-login login_executable(imap): /userM/mail-services/dovecot/libexec/dovecot/imap-login login_executable(pop3): /userM/mail-services/dovecot/libexec/dovecot/pop3-login login_greeting: Cyrus ready. login_max_processes_count: 1024 max_mail_processes: 1024 mail_location: mbox:~/:INBOX=/userM/mail/%u mail_debug: yes mmap_disable: yes mail_nfs_index: yes mail_executable(default): /userM/mail-services/dovecot/libexec/dovecot/imap mail_executable(imap): /userM/mail-services/dovecot/libexec/dovecot/imap mail_executable(pop3): /userM/mail-services/dovecot/libexec/dovecot/pop3 mail_plugin_dir(default): /userM/mail-services/dovecot/lib/dovecot/imap mail_plugin_dir(imap): /userM/mail-services/dovecot/lib/dovecot/imap mail_plugin_dir(pop3): /userM/mail-services/dovecot/lib/dovecot/pop3 auth default: mechanisms: plain login verbose: yes debug: yes passdb: driver: pam passdb: driver: passwd args: blocking=yes userdb: driver: passwd args: blocking=yes socket: type: listen client: path: /userM/mail-services/postfix/var/private/auth mode: 432 user: postfix group: postfix master: path: /userM/mail-services/dovecot/var/run/dovecot/auth-master mode: 384 user: postfix group: postfix My sieve file: require ["fileinto", "vacation"]; # BEGIN VACATION vacation :days 30 :subject "Out of Office Reply" :from "cj.keist at colostate.edu" :addresses "cjay at engr2.colostate.edu" "********************** OUT OF THE OFFICE ******************* testing auto vacation i will reply to your message. *************************************************************"; Is there something in the config files I'm missing? Also, I'm willing to debug this if someone could point me in the right direction in the sieve plugin code where the from address should be set. Thanks... - -- C. J. Keist Email: cj.keist at colostate.edu UNIX/Network Manager Phone: 970-491-0630 Engineering Network Services Fax: 970-491-5569 College of Engineering, CSU Ft. Collins, CO 80523-1301 All I want is a chance to prove 'Money can't buy happiness' -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.5 (Darwin) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFIoJRMA29OFr7C6jcRApfUAKCgkd2Jg8e0MeBtjO/lszqfqUCG+wCcCjbX W22d0lwf0dFRrytxJpu/9HM=zOzG -----END PGP SIGNATURE-----
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Fixed it!! In the file src/sieve_cmu.c line 744: smtp_client = smtp_client_open(src->addr, NULL, &f); change to: smtp_client = smtp_client_open(src->addr, src->fromaddr, &f); CJ Keist wrote:> Sorry to bring this up again. > > I have now configured my test server to pass all email messages off to > our central campus email filter gateway. This gateway scans all email > traffic for viruses/spam before being delivered to any local mail servers. > Once I did this my auto vacation replies are getting canned due to the > fact the from header line is empty in the reply message. You can see > that it is empty from my mail logs (soon after the line where is > executes my .dovecot.sievec file): > > Aug 11 13:24:51 mail2.engr.colostate.edu dovecot: [ID 107833 mail.info] > auth(default): new auth connection: pid=15539 > Aug 11 13:24:51 mail2.engr.colostate.edu postfix/smtpd[15539]: [ID > 197553 mail.info] connect from akron.colostate.edu[129.82.103.160] > Aug 11 13:24:52 mail2.engr.colostate.edu postfix/smtpd[15539]: [ID > 197553 mail.info] setting up TLS connection from > akron.colostate.edu[129.82.103.160] > Aug 11 13:24:52 mail2.engr.colostate.edu postfix/smtpd[15539]: [ID > 197553 mail.info] Anonymous TLS connection established from > akron.colostate.edu[129.82.103.160]: TLSv1 with cipher > DHE-RSA-AES256-SHA (256/256 bits) > Aug 11 13:24:53 mail2.engr.colostate.edu postfix/smtpd[15539]: [ID > 197553 mail.info] 44DEC599C3: client=akron.colostate.edu[129.82.103.160] > Aug 11 13:24:53 mail2.engr.colostate.edu postfix/cleanup[15547]: [ID > 197553 mail.info] 44DEC599C3: > message-id=<f57f300811e59cd8ad787c582485f6b9.squirrel at webmail.engr.colostate.edu> > Aug 11 13:24:53 mail2.engr.colostate.edu postfix/smtpd[15539]: [ID > 197553 mail.info] disconnect from akron.colostate.edu[129.82.103.160] > Aug 11 13:24:53 mail2.engr.colostate.edu postfix/qmgr[15988]: [ID 197553 > mail.info] 44DEC599C3: from=<joeblow at engr.colostate.edu>, size=1875, > nrcpt=1 (queue active) > Aug 11 13:24:53 mail2.engr.colostate.edu deliver(cjay): [ID 315030 > mail.info] Loading modules from directory: > /userM/mail-services/dovecot/lib/dovecot/lda > Aug 11 13:24:53 mail2.engr.colostate.edu deliver(cjay): [ID 619685 > mail.info] Module loaded: > /userM/mail-services/dovecot/lib/dovecot/lda/lib90_cmusieve_plugin.so > Aug 11 13:24:53 mail2.engr.colostate.edu deliver(cjay): [ID 848615 > mail.info] mbox: > data=/top/admin/ENS/people/cjay/home/:INBOX=/userM/mail/cjay > Aug 11 13:24:53 mail2.engr.colostate.edu deliver(cjay): [ID 885103 > mail.info] fs: root=/top/admin/ENS/people/cjay/home, index=, control=, > inbox=/userM/mail/cjay > Aug 11 13:24:53 mail2.engr.colostate.edu deliver(cjay): [ID 223526 > mail.info] cmusieve: Using sieve path: > /top/admin/ENS/people/cjay/home/.dovecot.sieve > Aug 11 13:24:54 mail2.engr.colostate.edu deliver(cjay): [ID 507699 > mail.info] cmusieve: Executing script > /top/admin/ENS/people/cjay/home/.dovecot.sievec > Aug 11 13:24:54 mail2.engr.colostate.edu deliver(cjay): [ID 725890 > mail.info] > msgid=<f57f300811e59cd8ad787c582485f6b9.squirrel at webmail.engr.colostate.edu>: > sent vacation response to <joeblow at engr.colostate.edu> > Aug 11 13:24:54 mail2.engr.colostate.edu postfix/pickup[13201]: [ID > 197553 mail.info] B9798599C5: uid=10946 from=<> > Aug 11 13:24:54 mail2.engr.colostate.edu postfix/cleanup[15547]: [ID > 197553 mail.info] B9798599C5: > message-id=<dovecot-1218482693-706158-0 at mail2.engr.colostate.edu> > Aug 11 13:24:54 mail2.engr.colostate.edu postfix/qmgr[15988]: [ID 197553 > mail.info] B9798599C5: from=<>, size=772, nrcpt=1 (queue active) > Aug 11 13:24:55 mail2.engr.colostate.edu deliver(cjay): [ID 702911 > mail.info] > msgid=<f57f300811e59cd8ad787c582485f6b9.squirrel at webmail.engr.colostate.edu>: > saved mail to INBOX > Aug 11 13:24:55 mail2.engr.colostate.edu postfix/smtp[15555]: [ID 197553 > mail.info] B9798599C5: to=<joeblow at engr.colostate.edu>, > relay=parker.colostate.edu[129.82.103.125]:25, delay=0.89, > delays=0.09/0.51/0.03/0.25, dsn=2.0.0, status=sent (250 2.0.0 > m7BJOur1516324 Message accepted for delivery) > Aug 11 13:24:55 mail2.engr.colostate.edu postfix/qmgr[15988]: [ID 197553 > mail.info] B9798599C5: removed > Aug 11 13:24:55 mail2.engr.colostate.edu postfix/local[15549]: [ID > 197553 mail.info] 44DEC599C3: to=<cjay at engr2.colostate.edu>, > relay=local, delay=2.7, delays=0.26/0.19/0/2.2, dsn=2.0.0, status=sent > (delivered to command: /userM/mail-services/dovecot/libexec/dovecot/deliver) > Aug 11 13:24:55 mail2.engr.colostate.edu postfix/qmgr[15988]: [ID 197553 > mail.info] 44DEC599C3: removed > > Again, my info: > > OS: Solaris 10 sparc on T2000 > postfix: 2.5.2 > dovecot: 1.1.2 > sieve plug: 1.1.5 > > dovecot -n: > # 1.1.2: /userM/mail-services/dovecot/etc/dovecot.conf > Warning: fd limit 256 is lower than what Dovecot can use under full load > (more than 3072). Either grow the limit or change > login_max_processes_count and max_mail_processes settings > base_dir: /userM/mail-services/dovecot/var/run/dovecot/ > protocols: imap imaps pop3 pop3s > ssl_cert_file: /userM/mail-services/dovecot/etc/ssl/dovecot.pem > ssl_key_file: /userM/mail-services/dovecot/etc/ssl/privkey.pem > ssl_parameters_regenerate: 0 > ssl_cipher_list: MEDIUM:!LOW > disable_plaintext_auth: no > login_dir: /userM/mail-services/dovecot/var/run/dovecot/login > login_executable(default): > /userM/mail-services/dovecot/libexec/dovecot/imap-login > login_executable(imap): > /userM/mail-services/dovecot/libexec/dovecot/imap-login > login_executable(pop3): > /userM/mail-services/dovecot/libexec/dovecot/pop3-login > login_greeting: Cyrus ready. > login_max_processes_count: 1024 > max_mail_processes: 1024 > mail_location: mbox:~/:INBOX=/userM/mail/%u > mail_debug: yes > mmap_disable: yes > mail_nfs_index: yes > mail_executable(default): /userM/mail-services/dovecot/libexec/dovecot/imap > mail_executable(imap): /userM/mail-services/dovecot/libexec/dovecot/imap > mail_executable(pop3): /userM/mail-services/dovecot/libexec/dovecot/pop3 > mail_plugin_dir(default): /userM/mail-services/dovecot/lib/dovecot/imap > mail_plugin_dir(imap): /userM/mail-services/dovecot/lib/dovecot/imap > mail_plugin_dir(pop3): /userM/mail-services/dovecot/lib/dovecot/pop3 > auth default: > mechanisms: plain login > verbose: yes > debug: yes > passdb: > driver: pam > passdb: > driver: passwd > args: blocking=yes > userdb: > driver: passwd > args: blocking=yes > socket: > type: listen > client: > path: /userM/mail-services/postfix/var/private/auth > mode: 432 > user: postfix > group: postfix > master: > path: /userM/mail-services/dovecot/var/run/dovecot/auth-master > mode: 384 > user: postfix > group: postfix > > > My sieve file: > require ["fileinto", "vacation"]; > > # BEGIN VACATION > vacation > :days 30 > :subject "Out of Office Reply" > :from "cj.keist at colostate.edu" > :addresses "cjay at engr2.colostate.edu" > "********************** OUT OF THE OFFICE ******************* > > testing auto vacation > i will reply to your message. > > *************************************************************"; > > Is there something in the config files I'm missing? Also, I'm willing > to debug this if someone could point me in the right direction in the > sieve plugin code where the from address should be set. > > Thanks... > >- -- C. J. Keist Email: cj.keist at colostate.edu UNIX/Network Manager Phone: 970-491-0630 Engineering Network Services Fax: 970-491-5569 College of Engineering, CSU Ft. Collins, CO 80523-1301 All I want is a chance to prove 'Money can't buy happiness' -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.5 (Darwin) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFIoJxsA29OFr7C6jcRAlCwAJ4s0yDKFrWKC9+pn9TYk3xFxufByACgs6Tq Zbp+H2jpwAzm2ADf54GzGGw=cOfm -----END PGP SIGNATURE-----
CJ Keist schreef:> -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > Fixed it!! > > In the file src/sieve_cmu.c line 744: > > smtp_client = smtp_client_open(src->addr, NULL, &f); > > change to: > > smtp_client = smtp_client_open(src->addr, src->fromaddr, &f); >First of all, this does not control the content of the From: header line, but rather the FROM SMTP envelope field. This behavior is implemented as such on purpose. From RFC5230 (http://www.ietf.org/rfc/rfc5230.txt): 5.1. SMTP MAIL FROM Address The SMTP MAIL FROM address of the message envelope SHOULD be set to <>. [...] This is primarily recommended to prevent other (more stupid) auto-responders to generate a response to your vacation response (see also RFC3834 - 3.3. Message envelope). In general I would recommend adjusting the filter accordingly, because vacation replies are likely not going to be the only thing it will chew on when it is configured to bite things that have an empty return path (e.g. mailer daemon status reports and the like). Regards, Stephan.
Possibly Parallel Threads
- Dovecot auto vacation with sieve doesn't work
- Help with auto vacation replies
- Dovecot sieve plugin reject not working
- Fatal: master: service(imap): child 20258 killed with signal 6 (core not dumped - set service imap { drop_priv_before_exec=yes })
- sendmail permissions denied