[Dovecot] Vacation?
kbajwa
kbajwa at tibonline.net
Tue Jul 8 14:25:45 EEST 2008
Charles:
I am using the email address: test at wildpeacockstudios.com for testing
dovecot.sieve.
Here are the logs:
/var/log/maillog
-----------------
Jul 8 04:47:29 www dovecot: Dovecot v1.0.7 starting up
Jul 8 04:47:30 www postfix/postfix-script: starting the Postfix mail system
Jul 8 04:47:30 www postfix/master[2588]: daemon started -- version 2.3.3,
configuration /etc/postfix
Jul 8 04:48:33 www dovecot: pop3-login: Login: user=<kirtib>, method=PLAIN,
rip=::ffff:192.168.0.64, lip=::ffff:65.103.190.107, TLS
Jul 8 04:48:33 www dovecot: POP3(kirtib): Disconnected: Logged out top=0/0,
retr=0/0, del=0/0, size=0
Jul 8 04:50:14 www dovecot: pop3-login: Login: user=<test>, method=PLAIN,
rip=::ffff:192.168.0.64, lip=::ffff:65.103.190.107
Jul 8 04:50:15 www dovecot: POP3(test): Disconnected: Logged out top=0/0,
retr=0/0, del=0/0, size=0
Jul 8 04:51:18 www postfix/smtpd[3216]: connect from
mail.spaceportusa.net[12.179.81.11]
Jul 8 04:51:19 www postfix/smtpd[3216]: 49B931ED8038:
client=mail.spaceportusa.net[12.179.81.11]
Jul 8 04:51:19 www postfix/cleanup[3220]: 49B931ED8038:
message-id=<B50F23C515504B4499795A6E443A337E at Sunshine>
Jul 8 04:51:19 www postfix/qmgr[2609]: 49B931ED8038:
from=<kbajwa at tibonline.net>, size=900, nrcpt=1 (queue active)
Jul 8 04:51:19 www postfix/local[3221]: 49B931ED8038:
to=<test at wildpeacockstudios.com>, relay=local, delay=0.67,
delays=0.64/0.02/0/0, dsn=2.0.0, status=sent (delivered to maildir)
Jul 8 04:51:19 www postfix/qmgr[2609]: 49B931ED8038: removed
Jul 8 04:51:19 www postfix/smtpd[3216]: disconnect from
mail.spaceportusa.net[12.179.81.11]
Jul 8 04:54:39 www postfix/anvil[3218]: statistics: max connection rate
1/60s for (smtp:12.179.81.11) at Jul 8 04:51:18
Jul 8 04:54:39 www postfix/anvil[3218]: statistics: max connection count 1
for (smtp:12.179.81.11) at Jul 8 04:51:18
Jul 8 04:54:39 www postfix/anvil[3218]: statistics: max cache size 1 at Jul
8 04:51:18
Jul 8 04:55:29 www dovecot: pop3-login: Login: user=<test>, method=PLAIN,
rip=::ffff:192.168.0.64, lip=::ffff:65.103.190.107, TLS
Jul 8 04:55:29 www dovecot: POP3(test): Disconnected: Logged out top=0/0,
retr=1/1041, del=1/1, size=1024
Jul 8 04:58:24 www dovecot: pop3-login: Login: user=<wps-system-messages>,
method=PLAIN, rip=::ffff:192.168.0.64, lip=::ffff:65.103.190.107
Jul 8 04:58:24 www dovecot: pop3-login: Login: user=<kirtib>, method=PLAIN,
rip=::ffff:192.168.0.64, lip=::ffff:65.103.190.107, TLS
Jul 8 04:58:24 www dovecot: POP3(wps-system-messages): Disconnected: Logged
out top=0/0, retr=0/0, del=0/2, size=142211
Jul 8 04:58:24 www dovecot: POP3(kirtib): Disconnected: Logged out top=0/0,
retr=0/0, del=0/0, size=0
-----------------
%dovecot -n
-----------------
[root at www ~]# dovecot -n
# 1.0.7: /etc/dovecot.conf
login_dir: /var/run/dovecot/login
login_executable(default): /usr/libexec/dovecot/imap-login
login_executable(imap): /usr/libexec/dovecot/imap-login
login_executable(pop3): /usr/libexec/dovecot/pop3-login
mail_location: maildir:~/Maildir
maildir_copy_with_hardlinks: yes
mail_executable(default): /usr/libexec/dovecot/imap
mail_executable(imap): /usr/libexec/dovecot/imap
mail_executable(pop3): /usr/libexec/dovecot/pop3
mail_plugin_dir(default): /usr/lib/dovecot/imap
mail_plugin_dir(imap): /usr/lib/dovecot/imap
mail_plugin_dir(pop3): /usr/lib/dovecot/pop3
imap_client_workarounds(default): delay-newmail outlook-idle netscape-eoh
imap_client_workarounds(imap): delay-newmail outlook-idle netscape-eoh
imap_client_workarounds(pop3): outlook-idle
pop3_client_workarounds(default):
pop3_client_workarounds(imap):
pop3_client_workarounds(pop3): outlook-no-nuls oe-ns-eoh
auth default:
mechanisms: plain login
passdb:
driver: pam
userdb:
driver: passwd
socket:
type: listen
client:
path: /var/spool/postfix/private/auth
mode: 432
user: postfix
group: postfix
[root at www ~]#
-----------------
%postconf -n
-----------------
[root at www ~]# postconf -n
alias_database = hash:/etc/aliases
alias_maps = hash:/etc/aliases
broken_sasl_auth_clients = yes
command_directory = /usr/sbin
config_directory = /etc/postfix
daemon_directory = /usr/libexec/postfix
debug_peer_level = 2
home_mailbox = Maildir/
html_directory = no
inet_interfaces = all
mail_owner = postfix
mailq_path = /usr/bin/mailq.postfix
manpage_directory = /usr/share/man
mydestination = $myhostname, localhost.$mydomain, localhost, $mydomain
mydomain = wildpeacockstudios.com
myhostname = mail.wildpeacockstudios.com
mynetworks = 127.0.0.0/8
myorigin = $mydomain
newaliases_path = /usr/bin/newaliases.postfix
queue_directory = /var/spool/postfix
readme_directory = /usr/share/doc/postfix-2.3.3/README_FILES
relay_domains =
relayhost =
sample_directory = /usr/share/doc/postfix-2.3.3/samples
sendmail_path = /usr/sbin/sendmail.postfix
setgid_group = postdrop
smtpd_recipient_restrictions = permit_mynetworks, permit_sasl_authenticated,
reject_unauth_destination
smtpd_sasl_auth_enable = yes
smtpd_sasl_path = private/auth
smtpd_sasl_type = dovecot
unknown_local_recipient_reject_code = 550
[root at www ~]#
-----------------
.dovecot.sieve (/home/test/)
-----------------
require ["fileinto", "vacation"];
# Move spam to spam folder
if exists "X-Spam-Flag" {
fileinto "spam";
# Stop here so that we do not reply on spams
stop;
}
vacation
# Reply at most once a day to a same sender
:days 1
:subject "Out of office reply"
# List of recipient addresses which are included in the auto replying.
# If a mail's recipient is not on this list, no vacation reply is sent for
it.
:addresses ["test at wildpeacockstudios.com"]
"I'm out of office, please contact me at my vacation home in Hawaii instead.
Best regards
K";
-----------------
Hope this answers my problem. Many Many THANKS in advance.
Kirti
-----Original Message-----
From: dovecot-bounces+kbajwa=tibonline.net at dovecot.org
[mailto:dovecot-bounces+kbajwa=tibonline.net at dovecot.org] On Behalf Of
Charles Marcus
Sent: Monday, July 07, 2008 8:36 PM
To: 'Dovecot Mailing List'
Subject: Re: [Dovecot] Vacation?
On 7/7/2008 kbajwa wrote:
> Do you know if Dovecot-1.1.1 works with CentOS 5.1?
http://www.atrpms.net/dist/el5/dovecot/
http://www.atrpms.net/dist/el5/dovecot-sieve/
> 2. I assume when you said logs, you mean 'var/log/maillog'. If so,
> here is a piece of it (it is quite large):
Well... not just *anything* from it... what I meant was, a log event of
a message delivery that should have resulted in a vacation message being
sent.
> Jul 7 18:36:10 www dovecot:
> auth(default): Time just moved backwards by 1 seconds. I'll sleep now
> until we're back in present.
> http://wiki.dovecot.org/TimeMovedBackwards
Time is critical on servers... you need to fix this. Are you running ntp
client (NOT ntpdate)? Is this running in a virtual machine.
I don't see any complete logs of a single message that should have
resulted in a vacation message.
Also, dovecot -n and postconf -n output might help too...
More information about the dovecot
mailing list