RE: Howto - install avelsieve for squirrel webmail - rbtux - 10-25-2007 04:49 AM
i can see user=vmail but none group=vmail... Am I blind or something??? can you post the complete dovecot.conf
RE: Howto - install avelsieve for squirrel webmail - BeNe - 10-25-2007 05:03 AM
Quote:Am I blind or something???
No 
*damn* I´m sorry ! Was my fault, i set also vmail for the group but only on the master block... I will now going to test the system a give a feedback.
Greez BeNe
RE: Howto - install avelsieve for squirrel webmail - BeNe - 10-25-2007 05:16 AM
Here i am again with a new Error - look like my system hate´s me today 
This is my mail.log
Code:
Oct 24 19:07:50 vsxxxxxx postfix/qmgr[17794]: 6837D57385BC: from=<amavis@mail.my-domain.de.local>, size=657, nrcpt=1 (queue active)
Oct 24 19:07:50 vsxxxxxx postfix/qmgr[17794]: D3E235738650: from=<root@mail.my-domain.de.local>, size=1611, nrcpt=1 (queue active)
Oct 24 19:07:55 vsxxxxxx postfix/smtpd[20450]: warning: SASL: Connect to private/auth failed: Connection refused
Oct 24 19:07:55 vsxxxxxx postfix/smtpd[20450]: fatal: no SASL authentication mechanisms
Oct 24 19:07:55 vsxxxxxx postfix/smtpd[20451]: warning: SASL: Connect to private/auth failed: Connection refused
Oct 24 19:07:55 vsxxxxxx postfix/smtpd[20451]: fatal: no SASL authentication mechanisms
Oct 24 19:07:56 vsxxxxxx postfix/master[17787]: warning: process /usr/lib/postfix/smtpd pid 20450 exit status 1
Oct 24 19:07:56 vsxxxxxx postfix/master[17787]: warning: /usr/lib/postfix/smtpd: bad command startup -- throttling
Oct 24 19:07:56 vsxxxxxx amavis[19498]: (19498-01) mail_via_smtp: 450 4.4.1 Can't connect to 127.0.0.1 port 10025, Bad file descriptor at /usr/sbin/amavisd-new line 6599, <GEN5> line 55., id=19498-01
Oct 24 19:07:56 vsxxxxxx amavis[19498]: (19498-01) Blocked CLEAN, <amavis@mail.my-domain.de.local> -> <amavis@mail.my-domain.de.local>, Message-ID: <20071024170101.6837D57385BC@mail.my-domain.de>, Hits: 2.49, 6345 ms
Oct 24 19:07:56 vsxxxxxx postfix/smtp[20415]: 6837D57385BC: to=<amavis@mail.my-domain.de.local>, orig_to=<amavis>, relay=127.0.0.1[127.0.0.1]:10024, delay=7615, delays=7609/0.01/0.02/6.3, dsn=4.4.1, status=deferred (host 127.0.0.1[127.0.0.1] said: 450 4.4.1 Can't connect to 127.0.0.1 port 10025, Bad file descriptor at /usr/sbin/amavisd-new line 6599, <GEN5> line 55., id=19498-01 (in reply to end of DATA command))
Oct 24 19:07:56 vsxxxxxx postfix/master[17787]: warning: process /usr/lib/postfix/smtpd pid 20451 exit status 1
Oct 24 19:07:56 vsxxxxxx amavis[19499]: (19499-01) mail_via_smtp: 450 4.4.1 Can't connect to 127.0.0.1 port 10025, Bad file descriptor at /usr/sbin/amavisd-new line 6599, <GEN5> line 106., id=19499-01
Oct 24 19:07:56 vsxxxxxx amavis[19499]: (19499-01) Blocked CLEAN, <root@mail.my-domain.de.local> -> <root@mail.my-domain.de.local>, Message-ID: <20071024181503.D3E235738650@mail.my-domain.de>, Hits: 2.494, 6409 ms
Oct 24 19:07:56 vsxxxxxx postfix/smtp[20416]: D3E235738650: to=<root@mail.my-domain.de.local>, orig_to=<root>, relay=127.0.0.1[127.0.0.1]:10024, delay=3175, delays=3168/0.02/0.01/6.4, dsn=4.4.1, status=deferred (host 127.0.0.1[127.0.0.1] said: 450 4.4.1 Can't connect to 127.0.0.1 port 10025, Bad file descriptor at /usr/sbin/amavisd-new line 6599, <GEN5> line 106., id=19499-01 (in reply to end of DATA command))
I mean that the AMaVis error occurs out of this:
Code:
warning: SASL: Connect to private/auth failed: Connection refused
What files do we need for Debug ?
Here is my dovecot.conf
Code:
base_dir = /var/run/dovecot/
protocols = imap pop3
disable_plaintext_auth = no
listen=*
protocols = imap pop3 imaps pop3s
ssl_disable = no
syslog_facility = mail
login_greeting = Dovecot ready.
mail_location = maildir:/var/mail/virtual/%d/%n
mail_extra_groups = mail
protocol imap {
}
namespace private {
prefix = INBOX.
inbox = yes
}
protocol pop3 {
pop3_uidl_format = %u-%v
}
protocol lda {
postmaster_address = postmaster@my-domain.de
auth_socket_path = /var/run/dovecot/auth-master
mail_plugins = cmusieve
}
auth pysieved {
mechanisms = plain
passdb sql {
args = /etc/dovecot/dovecot-sql-domain.conf
}
userdb sql {
args = /etc/dovecot/dovecot-sql-domain.conf
}
passdb sql {
args = /etc/dovecot/dovecot-sql-subdomain.conf
}
userdb sql {
args = /etc/dovecot/dovecot-sql-subdomain.conf
}
socket listen {
client {
path = /var/run/pysieved/auth
mode = 0660
user = vmail
group = mail
}
master {
path = /var/run/pysieved/auth-master
mode = 0660
user = vmail
group = mail
}
}
user = vmail
}
plugin {
}
Greez BeNe
RE: Howto - install avelsieve for squirrel webmail - rbtux - 10-25-2007 05:17 AM
output of postconf -n
dovecot.conf
master.cf
RE: Howto - install avelsieve for squirrel webmail - BeNe - 10-25-2007 05:28 AM
Allright, here we go:
Code:
# postconf -n
alias_database = hash:/etc/aliases
append_at_myorigin = yes
append_dot_mydomain = no
biff = no
broken_sasl_auth_clients = yes
command_directory = /usr/sbin
config_directory = /etc/postfix
content_filter = amavis:[127.0.0.1]:10024
daemon_directory = /usr/lib/postfix
inet_interfaces = all
local_destination_recipient_limit = 1
local_recipient_maps = unix:passwd.byname $alias_database
local_transport = local
mail_spool_directory = /var/mail
mailbox_command = procmail -a "$EXTENSION"
mailbox_size_limit = 0
mydestination = $myhostname, $mydomain
mydomain = mail.my-domain.local
myhostname = mail.my-domain.de
mynetworks_style = host
myorigin = $mydomain
setgid_group = postdrop
smtpd_banner = $myhostname ISPCP 1.0 Priamos Managed ESMTP 1.0.0 RC3 OMEGA
smtpd_recipient_restrictions = permit_mynetworks, permit_sasl_authenticated, reject_unauth_destination
smtpd_sasl_auth_enable = yes
smtpd_sasl_path = private/auth
smtpd_sasl_security_options = noanonymous
smtpd_sasl_type = dovecot
smtpd_sender_restrictions = permit_mynetworks, permit_sasl_authenticated, reject_unauth_destination
transport_maps = hash:/etc/postfix/ispcp/transport
virtual_alias_maps = hash:/etc/postfix/ispcp/aliases
virtual_gid_maps = static:8
virtual_mailbox_base = /var/mail/virtual
virtual_mailbox_domains = hash:/etc/postfix/ispcp/domains
virtual_mailbox_limit = 0
virtual_mailbox_maps = hash:/etc/postfix/ispcp/mailboxes
virtual_minimum_uid = 1000
virtual_transport = dovecot
virtual_uid_maps = static:1000
Here is the master.cf
Code:
# cat /etc/postfix/master.cf
#
# Postfix master process configuration file. For details on the format
# of the file, see the master(5) manual page (command: "man 5 master").
#
# ==========================================================================
# service type private unpriv chroot wakeup maxproc command + args
# (yes) (yes) (yes) (never) (100)
# ==========================================================================
smtp inet n - - - - smtpd
#submission inet n - - - - smtpd
# -o smtpd_enforce_tls=yes
# -o smtpd_sasl_auth_enable=yes
# -o smtpd_client_restrictions=permit_sasl_authenticated,reject
#smtps inet n - - - - smtpd
# -o smtpd_tls_wrappermode=yes
# -o smtpd_sasl_auth_enable=yes
# -o smtpd_client_restrictions=permit_sasl_authenticated,reject
# For AOL-Accounts
587 inet n - - - - smtpd
-o smtpd_client_restrictions=permit_sasl_authenticated,reject_unauth_destination
#628 inet n - - - - qmqpd
pickup fifo n - - 60 1 pickup
cleanup unix n - - - 0 cleanup
qmgr fifo n - - 300 1 qmgr
#qmgr fifo n - - 300 1 oqmgr
tlsmgr unix - - - 1000? 1 tlsmgr
rewrite unix - - - - - trivial-rewrite
bounce unix - - - - 0 bounce
defer unix - - - - 0 bounce
trace unix - - - - 0 bounce
verify unix - - - - 1 verify
flush unix n - - 1000? 0 flush
proxymap unix - - n - - proxymap
smtp unix - - - - - smtp
# When relaying mail as backup MX, disable fallback_relay to avoid MX loops
relay unix - - - - - smtp
-o fallback_relay=
# -o smtp_helo_timeout=5 -o smtp_connect_timeout=5
showq unix n - - - - showq
error unix - - - - - error
discard unix - - - - - discard
local unix - n n - - local
virtual unix - n n - - virtual
lmtp unix - - - - - lmtp
anvil unix - - - - 1 anvil
scache unix - - - - 1 scache
# ====================================================================
# ISPCP ω OMEGA configuration
# ====================================================================
# AMaViS => Antivir / Antispam
amavis unix - - n - 2 smtp
-o smtp_data_done_timeout=1200
-o smtp_send_xforward_command=yes
-o disable_dns_lookups=yes
localhost:10025 inet n - n - - smtpd
-o content_filter=
-o local_recipient_maps=
-o relay_recipient_maps=
-o smtpd_restriction_classes=
-o smtpd_client_restrictions=
-o smtpd_helo_restrictions=
-o smtpd_sender_restrictions=
-o smtpd_recipient_restrictions=permit_mynetworks,reject
-o smtpd_override_options=no_address_mappings
-o mynetworks=127.0.0.0/8
-o strict_rfc821_envelopes=yes
# ISPCP autoresponder
ispcp-arpl unix - n n - - pipe
flags=O user=vmail argv=/var/www/ispcp/engine/messager/ispcp-arpl-msgr
# TSL - Activate, if TSL is avaiable/used
smtps inet n - - - - smtpd
-o smtpd_tls_wrappermode=yes
-o smtpd_sasl_auth_enable=yes
# -o smtpd_client_restrictions=permit_sasl_authenticated,reject
#
# ====================================================================
# Interfaces to non-Postfix software. Be sure to examine the manual
# pages of the non-Postfix software to find out what options it wants.
#
# Many of the following services use the Postfix pipe(8) delivery
# agent. See the pipe(8) man page for information about ${recipient}
# and other message envelope options.
# ====================================================================
#
# maildrop. See the Postfix MAILDROP_README file for details.
# Also specify in main.cf: maildrop_destination_recipient_limit=1
#
maildrop unix - n n - - pipe
flags=DRhu user=vmail argv=/usr/local/bin/maildrop -d ${recipient}
#
# The Cyrus deliver program has changed incompatibly, multiple times.
#
old-cyrus unix - n n - - pipe
flags=R user=cyrus argv=/cyrus/bin/deliver -e -m ${extension} ${user}
# Cyrus 2.1.5 (Amos Gouaux)
# Also specify in main.cf: cyrus_destination_recipient_limit=1
cyrus unix - n n - - pipe
user=cyrus argv=/cyrus/bin/deliver -e -r ${sender} -m ${extension} ${user}
#
# See the Postfix UUCP_README file for configuration details.
#
uucp unix - n n - - pipe
flags=Fqhu user=uucp argv=uux -r -n -z -a$sender - $nexthop!rmail ($recipient)
#
# Other external delivery methods.
#
ifmail unix - n n - - pipe
flags=F user=ftn argv=/usr/lib/ifmail/ifmail -r $nexthop ($recipient)
bsmtp unix - n n - - pipe
flags=Fq. user=foo argv=/usr/local/sbin/bsmtp -f $sender $nexthop $recipient
dovecot unix - n n - - pipe
flags=DRhu user=vmail:mail argv=/usr/lib/dovecot/deliver -f ${sender} -d ${recipient}
And here the dovecot.conf again:
Code:
base_dir = /var/run/dovecot/
protocols = imap pop3
disable_plaintext_auth = no
listen=*
protocols = imap pop3 imaps pop3s
ssl_disable = no
syslog_facility = mail
login_greeting = Dovecot ready.
mail_location = maildir:/var/mail/virtual/%d/%n
mail_extra_groups = mail
protocol imap {
}
namespace private {
prefix = INBOX.
inbox = yes
}
protocol pop3 {
pop3_uidl_format = %u-%v
}
protocol lda {
postmaster_address = postmaster@my-domain.de
auth_socket_path = /var/run/dovecot/auth-master
mail_plugins = cmusieve
}
auth pysieved {
mechanisms = plain
passdb sql {
args = /etc/dovecot/dovecot-sql-domain.conf
}
userdb sql {
args = /etc/dovecot/dovecot-sql-domain.conf
}
passdb sql {
args = /etc/dovecot/dovecot-sql-subdomain.conf
}
userdb sql {
args = /etc/dovecot/dovecot-sql-subdomain.conf
}
socket listen {
client {
path = /var/run/pysieved/auth
mode = 0660
user = vmail
group = mail
}
master {
path = /var/run/pysieved/auth-master
mode = 0660
user = vmail
group = mail
}
}
user = vmail
}
plugin {
}
This error happens after the avelsieve howto.
But i am not sure at which point it is broken.
Thanks for help.
Greez BeNe
RE: Howto - install avelsieve for squirrel webmail - rbtux - 10-25-2007 05:32 AM
yeah and I think I know why...
in point 5 of the avelsieve howto there it reads "Add the following lines"
There is no sentence with overwrite the existing config...
in your dovecot.conf the following part is missing:
Quote:auth default {
mechanisms = plain
passdb sql {
args = /etc/dovecot/dovecot-sql-domain.conf
}
userdb sql {
args = /etc/dovecot/dovecot-sql-domain.conf
}
passdb sql {
args = /etc/dovecot/dovecot-sql-subdomain.conf
}
userdb sql {
args = /etc/dovecot/dovecot-sql-subdomain.conf
}
socket listen {
client {
path = /var/spool/postfix/private/auth
mode = 0660
user = postfix
group = postfix
}
master {
path = /var/run/dovecot/auth-master
mode = 0660
user = vmail
group = mail
}
}
user = vmail
}
RE: Howto - install avelsieve for squirrel webmail - BeNe - 10-25-2007 05:41 AM
Yeah you are right, i did not add these lines...*damn*
But i was not really sure about this dot´s
Code:
protocol lda {
.
.
.
in the part. Thats why i do that 
I will change it quickly and give a feedback....Sorry...it is not my day today..
Greez BeNe
RE: Howto - install avelsieve for squirrel webmail - BeNe - 10-25-2007 06:20 AM
I corrected my config and now it looks good. e-Mails arrives again and now i will going test the filter...
Greez BeNe
RE: Howto - install avelsieve for squirrel webmail - rbtux - 10-25-2007 06:28 AM
yeah the one can read is really benefical :-)
RE: Howto - install avelsieve for squirrel webmail - BeNe - 10-25-2007 06:37 AM
hehe yes, but here you must read AND understand...
Sorry, a second look at the Error message and the files again should be clearly enough to fix it myself but today i am blind... 
The Filter works also perfect now!
No problem with the new squirrelmail version.
Greez BeNe
|