Cyrus Imap / Postfix ail

Cyrus Imap / Postfix ail

Post by Steppenwol » Sun, 21 Sep 2003 18:07:02


Hello Wayne Porter,

you are quite near to a solution of your problem. Try the following things:




lmtpunix cmd="lmtpd" listen="/var/spool/postfix/public/lmtp" prefork=1


ok, like it is.


leave it untouched, too.



mailbox_transport = lmtp:unix:public/lmtp


(...)


For further information have a look in
/usr/shar/doc/packages/cyrus-imap/README and README.Suse



So, I hope that'll help your.

Sunny day.

Harald Flothow
 
 
 

Cyrus Imap / Postfix ail

Post by Zbigniew L » Mon, 22 Sep 2003 14:31:16

i Harald,
i used more than three days (Wyne) and i still cannot push mails from the
postfix queue to imap mailboxes. "mailq" is listing mails with:
"unknown mail transport error" each. I suppose something with lmtp is wrong.
I tried both cyrus and postfix transport. Pipe files lmtp do exist and are
accessible. I reinstalled SuSE 8.1 cyrus and postfix packages but without
result. I did succede three times to push mails from the queue, but i
couldn't reproduce it !!! Nobody could help me at
XXXX@XXXXX.COM and on some other news groups.
Would you mind reading my config files:

/etc/cyrus/.conf:
# standard standalone server implementation

START {
# do not delete this entry!
recover cmd="ctl_cyrusdb -r"

# this is only necessary if using idled for IMAP IDLE
# idled cmd="idled"
}

# UNIX sockets start with a slash and are put into /var/lib/imap/socket
SERVICES {
# add or remove based on preferences
imap cmd="imapd" listen="imap" prefork=1
imaps cmd="imapd -s" listen="imaps" prefork=0
pop3 cmd="pop3d" listen="pop3" prefork=1
pop3s cmd="pop3d -s" listen="pop3s" prefork=0
sieve cmd="timsieved" listen="sieve" prefork=0

# at least one LMTP is required for delivery
#lmtp cmd="lmtpd" listen="lmtp" prefork=0
#lmtpunix cmd="lmtpd" listen="/var/lib/imap/socket/lmtp" prefork=0
lmtpunix cmd="lmtpd" listen="/var/spool/postfix/public/lmtp" prefork=1

# this is only necessary if using notifications
# notify cmd="notifyd" listen="/var/lib/imap/socket/notify" proto="udp"
prefork=1
}

EVENTS {
# this is required
checkpoint cmd="ctl_cyrusdb -c" period=30

# this is only necessary if using duplicate delivery suppression
delprune cmd="ctl_deliver -E 3" period=1440

# this is only necessary if caching TLS sessions
tlsprune cmd="tls_prune" period=1440

# Uncomment the next entry, if you want to automatically remove
# old messages of EVERY user.
# This example calls ipurge every 60 minutes and ipurge will delete
# ALL messages older then 30 days.
# enter 'man 8 ipurge' for more details

# cleanup cmd="ipurge -d 30 -f" period=60
cleanup cmd="ipurge -f" period=60
}


/etc/imapd.conf:
configdirectory: /var/lib/imap
partition-default: /var/spool/imap
sievedir: /var/lib/sieve
admins: cyrus zbyszek
allowanonymouslogin: no
autocreatequota: 100000
reject8bit: no
quotawarn: 90
timeout: 30
poptimeout: 10
dracinterval: 0
drachost: localhost
#sasl_pwcheck_method: auxprop
sasl_pwcheck_method: saslauthd
# by zbyszek 10.9.2003
#lmtpsocket: /var/spool/postfix/public/lmtp
#lmtpsocket: /var/lib/imap/socket/lmtp
lmtp_overquota_perm_failure: no
#
# if you want TLS, you have to generate certificates and keys
#
#tls_cert_file: /usr/ssl/certs/cert.pem
#tls_key_file: /usr/ssl/certs/skey.pem
#tls_ca_file: /usr/ssl/CA/CAcert.pem
#tls_ca_path: /usr/ssl/CA

/etc/postfix/main.cf:
readme_directory = /usr/share/doc/packages/postfix/README_FILES
mail_spool_directory = /var/mail
canonical_maps = hash:/etc/postfix/canonical
virtual_maps = hash:/etc/postfix/virtual
relocated_maps = hash:/etc/postfix/relocated
transport_maps = hash:/etc/postfix/transport
sender_canonical_maps = hash:/etc/postfix/sender_canonical
mydomain = evot.org
myhostname = andy.evot.org
mydestination = $myhostname, localhost.$mydomain, $mydomain, mail.$mydoma
in
masquerade_classes = envelope_sender, header_sender, heade
 
 
 

Cyrus Imap / Postfix ail

Post by Zbigniew L » Mon, 22 Sep 2003 14:39:31

i Harald,
i used more than three days (Wyne) and i still cannot push mails from the
postfix queue to imap mailboxes. "mailq" is listing mails with:
"unknown mail transport error" each. I suppose something with lmtp is wrong.
I tried both cyrus and postfix transport. Pipe files lmtp do exist and are
accessible. I reinstalled SuSE 8.1 cyrus and postfix packages but without
result. I did succede three times to push mails from the queue, but i
couldn't reproduce it !!! Nobody could help me at
XXXX@XXXXX.COM and on some other news groups.
Would you mind reading my config files:

/etc/cyrus/.conf:
# standard standalone server implementation

START {
# do not delete this entry!
recover cmd="ctl_cyrusdb -r"

# this is only necessary if using idled for IMAP IDLE
# idled cmd="idled"
}

# UNIX sockets start with a slash and are put into /var/lib/imap/socket
SERVICES {
# add or remove based on preferences
imap cmd="imapd" listen="imap" prefork=1
imaps cmd="imapd -s" listen="imaps" prefork=0
pop3 cmd="pop3d" listen="pop3" prefork=1
pop3s cmd="pop3d -s" listen="pop3s" prefork=0
sieve cmd="timsieved" listen="sieve" prefork=0

# at least one LMTP is required for delivery
#lmtp cmd="lmtpd" listen="lmtp" prefork=0
#lmtpunix cmd="lmtpd" listen="/var/lib/imap/socket/lmtp" prefork=0
lmtpunix cmd="lmtpd" listen="/var/spool/postfix/public/lmtp" prefork=1

# this is only necessary if using notifications
# notify cmd="notifyd" listen="/var/lib/imap/socket/notify" proto="udp"
prefork=1
}

EVENTS {
# this is required
checkpoint cmd="ctl_cyrusdb -c" period=30

# this is only necessary if using duplicate delivery suppression
delprune cmd="ctl_deliver -E 3" period=1440

# this is only necessary if caching TLS sessions
tlsprune cmd="tls_prune" period=1440

# Uncomment the next entry, if you want to automatically remove
# old messages of EVERY user.
# This example calls ipurge every 60 minutes and ipurge will delete
# ALL messages older then 30 days.
# enter 'man 8 ipurge' for more details

# cleanup cmd="ipurge -d 30 -f" period=60
cleanup cmd="ipurge -f" period=60
}


/etc/imapd.conf:
configdirectory: /var/lib/imap
partition-default: /var/spool/imap
sievedir: /var/lib/sieve
admins: cyrus zbyszek
allowanonymouslogin: no
autocreatequota: 100000
reject8bit: no
quotawarn: 90
timeout: 30
poptimeout: 10
dracinterval: 0
drachost: localhost
#sasl_pwcheck_method: auxprop
sasl_pwcheck_method: saslauthd
# by zbyszek 10.9.2003
#lmtpsocket: /var/spool/postfix/public/lmtp
#lmtpsocket: /var/lib/imap/socket/lmtp
lmtp_overquota_perm_failure: no
#
# if you want TLS, you have to generate certificates and keys
#
#tls_cert_file: /usr/ssl/certs/cert.pem
#tls_key_file: /usr/ssl/certs/skey.pem
#tls_ca_file: /usr/ssl/CA/CAcert.pem
#tls_ca_path: /usr/ssl/CA

/etc/postfix/main.cf:
readme_directory = /usr/share/doc/packages/postfix/README_FILES
mail_spool_directory = /var/mail
canonical_maps = hash:/etc/postfix/canonical
virtual_maps = hash:/etc/postfix/virtual
relocated_maps = hash:/etc/postfix/relocated
transport_maps = hash:/etc/postfix/transport
sender_canonical_maps = hash:/etc/postfix/sender_canonical
mydomain = evot.org
myhostname = andy.evot.org
mydestination = $myhostname, localhost.$mydomain, $mydomain, mail.$mydoma
in
masquerade_classes = envelope_sender, header_sender, heade
 
 
 

Cyrus Imap / Postfix ail

Post by Zbigniew L » Mon, 22 Sep 2003 15:10:25

i Harald,
i used more than three days (Wyne) and i still cannot push mails from the
postfix queue to imap mailboxes. "mailq" is listing mails with:
"unknown mail transport error" each. I suppose something with lmtp is wrong.
I tried both cyrus and postfix transport. Pipe files lmtp do exist and are
accessible. I reinstalled SuSE 8.1 cyrus and postfix packages but without
result. I did succede three times to push mails from the queue, but i
couldn't reproduce it !!! Nobody could help me at
XXXX@XXXXX.COM and on some other news groups.
Would you mind reading my config files:

/etc/cyrus/.conf:
# standard standalone server implementation

START {
# do not delete this entry!
recover cmd="ctl_cyrusdb -r"

# this is only necessary if using idled for IMAP IDLE
# idled cmd="idled"
}

# UNIX sockets start with a slash and are put into /var/lib/imap/socket
SERVICES {
# add or remove based on preferences
imap cmd="imapd" listen="imap" prefork=1
imaps cmd="imapd -s" listen="imaps" prefork=0
pop3 cmd="pop3d" listen="pop3" prefork=1
pop3s cmd="pop3d -s" listen="pop3s" prefork=0
sieve cmd="timsieved" listen="sieve" prefork=0

# at least one LMTP is required for delivery
#lmtp cmd="lmtpd" listen="lmtp" prefork=0
#lmtpunix cmd="lmtpd" listen="/var/lib/imap/socket/lmtp" prefork=0
lmtpunix cmd="lmtpd" listen="/var/spool/postfix/public/lmtp" prefork=1

# this is only necessary if using notifications
# notify cmd="notifyd" listen="/var/lib/imap/socket/notify" proto="udp"
prefork=1
}

EVENTS {
# this is required
checkpoint cmd="ctl_cyrusdb -c" period=30

# this is only necessary if using duplicate delivery suppression
delprune cmd="ctl_deliver -E 3" period=1440

# this is only necessary if caching TLS sessions
tlsprune cmd="tls_prune" period=1440

# Uncomment the next entry, if you want to automatically remove
# old messages of EVERY user.
# This example calls ipurge every 60 minutes and ipurge will delete
# ALL messages older then 30 days.
# enter 'man 8 ipurge' for more details

# cleanup cmd="ipurge -d 30 -f" period=60
cleanup cmd="ipurge -f" period=60
}


/etc/imapd.conf:
configdirectory: /var/lib/imap
partition-default: /var/spool/imap
sievedir: /var/lib/sieve
admins: cyrus zbyszek
allowanonymouslogin: no
autocreatequota: 100000
reject8bit: no
quotawarn: 90
timeout: 30
poptimeout: 10
dracinterval: 0
drachost: localhost
#sasl_pwcheck_method: auxprop
sasl_pwcheck_method: saslauthd
# by zbyszek 10.9.2003
#lmtpsocket: /var/spool/postfix/public/lmtp
#lmtpsocket: /var/lib/imap/socket/lmtp
lmtp_overquota_perm_failure: no
#
# if you want TLS, you have to generate certificates and keys
#
#tls_cert_file: /usr/ssl/certs/cert.pem
#tls_key_file: /usr/ssl/certs/skey.pem
#tls_ca_file: /usr/ssl/CA/CAcert.pem
#tls_ca_path: /usr/ssl/CA

/etc/postfix/main.cf:
readme_directory = /usr/share/doc/packages/postfix/README_FILES
mail_spool_directory = /var/mail
canonical_maps = hash:/etc/postfix/canonical
virtual_maps = hash:/etc/postfix/virtual
relocated_maps = hash:/etc/postfix/relocated
transport_maps = hash:/etc/postfix/transport
sender_canonical_maps = hash:/etc/postfix/sender_canonical
mydomain = evot.org
myhostname = andy.evot.org
mydestination = $myhostname, localhost.$mydomain, $mydomain, mail.$mydoma
in
masquerade_classes = envelope_sender, header_sender, heade
 
 
 

Cyrus Imap / Postfix ail

Post by Zbigniew L » Mon, 22 Sep 2003 15:11:14

i Harald,
i used more than three days (Wyne) and i still cannot push mails from the
postfix queue to imap mailboxes. "mailq" is listing mails with:
"unknown mail transport error" each. I suppose something with lmtp is wrong.
I tried both cyrus and postfix transport. Pipe files lmtp do exist and are
accessible. I reinstalled SuSE 8.1 cyrus and postfix packages but without
result. I did succede three times to push mails from the queue, but i
couldn't reproduce it !!! Nobody could help me at
XXXX@XXXXX.COM and on some other news groups.
Would you mind reading my config files:

/etc/cyrus/.conf:
# standard standalone server implementation

START {
# do not delete this entry!
recover cmd="ctl_cyrusdb -r"

# this is only necessary if using idled for IMAP IDLE
# idled cmd="idled"
}

# UNIX sockets start with a slash and are put into /var/lib/imap/socket
SERVICES {
# add or remove based on preferences
imap cmd="imapd" listen="imap" prefork=1
imaps cmd="imapd -s" listen="imaps" prefork=0
pop3 cmd="pop3d" listen="pop3" prefork=1
pop3s cmd="pop3d -s" listen="pop3s" prefork=0
sieve cmd="timsieved" listen="sieve" prefork=0

# at least one LMTP is required for delivery
#lmtp cmd="lmtpd" listen="lmtp" prefork=0
#lmtpunix cmd="lmtpd" listen="/var/lib/imap/socket/lmtp" prefork=0
lmtpunix cmd="lmtpd" listen="/var/spool/postfix/public/lmtp" prefork=1

# this is only necessary if using notifications
# notify cmd="notifyd" listen="/var/lib/imap/socket/notify" proto="udp"
prefork=1
}

EVENTS {
# this is required
checkpoint cmd="ctl_cyrusdb -c" period=30

# this is only necessary if using duplicate delivery suppression
delprune cmd="ctl_deliver -E 3" period=1440

# this is only necessary if caching TLS sessions
tlsprune cmd="tls_prune" period=1440

# Uncomment the next entry, if you want to automatically remove
# old messages of EVERY user.
# This example calls ipurge every 60 minutes and ipurge will delete
# ALL messages older then 30 days.
# enter 'man 8 ipurge' for more details

# cleanup cmd="ipurge -d 30 -f" period=60
cleanup cmd="ipurge -f" period=60
}


/etc/imapd.conf:
configdirectory: /var/lib/imap
partition-default: /var/spool/imap
sievedir: /var/lib/sieve
admins: cyrus zbyszek
allowanonymouslogin: no
autocreatequota: 100000
reject8bit: no
quotawarn: 90
timeout: 30
poptimeout: 10
dracinterval: 0
drachost: localhost
#sasl_pwcheck_method: auxprop
sasl_pwcheck_method: saslauthd
# by zbyszek 10.9.2003
#lmtpsocket: /var/spool/postfix/public/lmtp
#lmtpsocket: /var/lib/imap/socket/lmtp
lmtp_overquota_perm_failure: no
#
# if you want TLS, you have to generate certificates and keys
#
#tls_cert_file: /usr/ssl/certs/cert.pem
#tls_key_file: /usr/ssl/certs/skey.pem
#tls_ca_file: /usr/ssl/CA/CAcert.pem
#tls_ca_path: /usr/ssl/CA

/etc/postfix/main.cf:
readme_directory = /usr/share/doc/packages/postfix/README_FILES
mail_spool_directory = /var/mail
canonical_maps = hash:/etc/postfix/canonical
virtual_maps = hash:/etc/postfix/virtual
relocated_maps = hash:/etc/postfix/relocated
transport_maps = hash:/etc/postfix/transport
sender_canonical_maps = hash:/etc/postfix/sender_canonical
mydomain = evot.org
myhostname = andy.evot.org
mydestination = $myhostname, localhost.$mydomain, $mydomain, mail.$mydoma
in
masquerade_classes = envelope_sender, header_sender, heade
 
 
 

Cyrus Imap / Postfix ail

Post by Zbigniew L » Mon, 22 Sep 2003 15:26:45

i Harald,
i used more than three days (Wyne) and i still cannot push mails from the
postfix queue to imap mailboxes. "mailq" is listing mails with:
"unknown mail transport error" each. I suppose something with lmtp is wrong.
I tried both cyrus and postfix transport. Pipe files lmtp do exist and are
accessible. I reinstalled SuSE 8.1 cyrus and postfix packages but without
result. I did succede three times to push mails from the queue, but i
couldn't reproduce it !!! Nobody could help me at
XXXX@XXXXX.COM and on some other news groups.
Would you mind reading my config files:

/etc/cyrus/.conf:
# standard standalone server implementation

START {
# do not delete this entry!
recover cmd="ctl_cyrusdb -r"

# this is only necessary if using idled for IMAP IDLE
# idled cmd="idled"
}

# UNIX sockets start with a slash and are put into /var/lib/imap/socket
SERVICES {
# add or remove based on preferences
imap cmd="imapd" listen="imap" prefork=1
imaps cmd="imapd -s" listen="imaps" prefork=0
pop3 cmd="pop3d" listen="pop3" prefork=1
pop3s cmd="pop3d -s" listen="pop3s" prefork=0
sieve cmd="timsieved" listen="sieve" prefork=0

# at least one LMTP is required for delivery
#lmtp cmd="lmtpd" listen="lmtp" prefork=0
#lmtpunix cmd="lmtpd" listen="/var/lib/imap/socket/lmtp" prefork=0
lmtpunix cmd="lmtpd" listen="/var/spool/postfix/public/lmtp" prefork=1

# this is only necessary if using notifications
# notify cmd="notifyd" listen="/var/lib/imap/socket/notify" proto="udp"
prefork=1
}

EVENTS {
# this is required
checkpoint cmd="ctl_cyrusdb -c" period=30

# this is only necessary if using duplicate delivery suppression
delprune cmd="ctl_deliver -E 3" period=1440

# this is only necessary if caching TLS sessions
tlsprune cmd="tls_prune" period=1440

# Uncomment the next entry, if you want to automatically remove
# old messages of EVERY user.
# This example calls ipurge every 60 minutes and ipurge will delete
# ALL messages older then 30 days.
# enter 'man 8 ipurge' for more details

# cleanup cmd="ipurge -d 30 -f" period=60
cleanup cmd="ipurge -f" period=60
}


/etc/imapd.conf:
configdirectory: /var/lib/imap
partition-default: /var/spool/imap
sievedir: /var/lib/sieve
admins: cyrus zbyszek
allowanonymouslogin: no
autocreatequota: 100000
reject8bit: no
quotawarn: 90
timeout: 30
poptimeout: 10
dracinterval: 0
drachost: localhost
#sasl_pwcheck_method: auxprop
sasl_pwcheck_method: saslauthd
# by zbyszek 10.9.2003
#lmtpsocket: /var/spool/postfix/public/lmtp
#lmtpsocket: /var/lib/imap/socket/lmtp
lmtp_overquota_perm_failure: no
#
# if you want TLS, you have to generate certificates and keys
#
#tls_cert_file: /usr/ssl/certs/cert.pem
#tls_key_file: /usr/ssl/certs/skey.pem
#tls_ca_file: /usr/ssl/CA/CAcert.pem
#tls_ca_path: /usr/ssl/CA

/etc/postfix/main.cf:
readme_directory = /usr/share/doc/packages/postfix/README_FILES
mail_spool_directory = /var/mail
canonical_maps = hash:/etc/postfix/canonical
virtual_maps = hash:/etc/postfix/virtual
relocated_maps = hash:/etc/postfix/relocated
transport_maps = hash:/etc/postfix/transport
sender_canonical_maps = hash:/etc/postfix/sender_canonical
mydomain = evot.org
myhostname = andy.evot.org
mydestination = $myhostname, localhost.$mydomain, $mydomain, mail.$mydoma
in
masquerade_classes = envelope_sender, header_sender, heade
 
 
 

Cyrus Imap / Postfix ail

Post by Harald Flo » Mon, 22 Sep 2003 18:46:52

i Zbigniew Lisiecki,



(..)

you don't need the lines with the socket, so leave them as comment..

the rest is imo correct.

look's good.

put the # away, I think postfix needs a smtp



I don't understand why you have procmail there. In my opinion you don't need
it anyway. The mail goes direct from postfix to imap. there you can use
sieve to filter/distribute your incoming mails.


No, I won't do that :-)
(Mayby you can check the mod of the file; it has to be "srwxrwxrwx")


my server logs some more details in /var/log/allmessages

So, keep on trying.

Harald Flothow.


 
 
 

Cyrus Imap / Postfix ail

Post by Zbigniew L » Mon, 22 Sep 2003 19:59:29

Hi Harald,

# ls -l /var/spool/postfix/public/lmtp
srwxrwxrwx 1 root root 0 2003-09-21 12:52
/var/spool/postfix/public/lmtp

it seems the file was newly touched

the only difference after:

/etc/postfix/master.cf:
smtp inet n - y - - smtpd

is /var/log/mail:
Sep 21 12:39:13 andy postfix/qmgr[1224]: F41041CB84:
from=< XXXX@XXXXX.COM >, size=160174, nrcpt=1 (queue active)
Sep 21 12:39:13 andy postfix/qmgr[1224]: F41041CB84: to=< XXXX@XXXXX.COM >,
relay=none, delay=126447, status=deferred (unknown mail transport error)
... same for each queue entry

would you rather understand it as "unknown mail transport", or "unknown sort
of error comming from mail transport" ?

what can i do more to find the cause ?
--
http://www.yqcomputer.com/
 
 
 

Cyrus Imap / Postfix ail

Post by Zbigniew L » Mon, 22 Sep 2003 21:40:27

Hi Harald,

# ls -l /var/spool/postfix/public/lmtp
srwxrwxrwx 1 root root 0 2003-09-21 12:52
/var/spool/postfix/public/lmtp

it seems the file was newly touched

the only difference after:

/etc/postfix/master.cf:
smtp inet n - y - - smtpd

is /var/log/mail:
Sep 21 12:39:13 andy postfix/qmgr[1224]: F41041CB84:
from=< XXXX@XXXXX.COM >, size=160174, nrcpt=1 (queue active)
Sep 21 12:39:13 andy postfix/qmgr[1224]: F41041CB84: to=< XXXX@XXXXX.COM >,
relay=none, delay=126447, status=deferred (unknown mail transport error)
... same for each queue entry

would you rather understand it as "unknown mail transport", or "unknown sort
of error comming from mail transport" ?

I'd like to know at least if it's cyrus, or postfix, which makes problems
--
http://www.yqcomputer.com/