Cyderic
20.10.09, 13:12
So, da ich wirklich langsam am verzweifeln bin, hoffe ich sehr das mir hier jemand hilft. Ersteinmal alle wichtigen Infos (ich hoffe ich vergesse nichts)
Distribution: SLES 10 SP2
Softwareversionen:
• Postfix 2.6.1-10.2
• Courier-Imap 4.5.1-5.5
postfix -n (PostConf)
alias_maps = mysql:/etc/postfix/mysql_aliases.cf
append_dot_mydomain = no
biff = no
bounce_queue_lifetime = 1d
broken_sasl_auth_clients = yes
config_directory = /etc/postfix
daemon_directory = /usr/lib/postfix
delay_warning_time = 2h
html_directory = /usr/share/doc/packages/postfix/html
inet_interfaces = all
local_header_rewrite_clients = $mydestination
mailbox_transport = virtual
mailq_path = /usr/bin/mailq
manpage_directory = /usr/share/man
message_size_limit = 8000000
mydestination = mysql:/etc/postfix/mysql_destination.cf
mydomain = mail.linux.de
myhostname = mail.linux.de
mynetworks = 192.168.0.0/24 , 127.0.0.0/8
myorigin = mail.linux.de
newaliases_path = /usr/bin/newaliases
readme_directory = /usr/share/doc/packages/postfix/README_FILES
recipient_canonical_maps = mysql:/etc/postfix/mysql_recipient_canonical.cf
remote_header_rewrite_domain = $mydestination
sample_directory = /usr/share/doc/packages/postfix/samples
sender_canonical_maps = mysql:/etc/postfix/mysql_sender_canonical.cf
sendmail_path = /usr/sbin/sendmail
setgid_group = vmail
smtpd_banner = $myhostname ESMTP $mail_name (Debian/GNU)
smtpd_delay_reject = yes
smtpd_helo_required = yes
smtpd_recipient_restrictions = permit_mynetworks, permit_sasl_authenticated, reject_invalid_hostname, reject_non_fqdn_hostname, reject_non_fqdn_sender, reject_non_fqdn_recipient, reject_unknown_sender_domain, reject_unknown_recipient_domain, reject_unauth_destination, reject_unlisted_recipient, reject_unauth_pipelining
smtpd_sasl_auth_enable = yes
smtpd_sasl_local_domain = $mydestination
smtpd_sasl_security_options = noanonymous
transport_maps = mysql:/etc/postfix/mysql_transport.cf
transport_retry_time = 10s
trigger_timeout = 20s
unknown_local_recipient_reject_code = 450
virtual_alias_maps = mysql:/etc/postfix/mysql_email2email.cf mysql:/etc/postfix/mysql_forwarding.cf
virtual_gid_maps = static:5000
virtual_mailbox_base = /home/vmail
virtual_mailbox_domains = mysql:/etc/postfix/mysql_destination_virtual.cf
virtual_mailbox_maps = mysql:/etc/postfix/mysql_mailboxes.cf
virtual_uid_maps = static:5000
Courier-Imap Conf (Imapd)
ADDRESS=127.0.0.1
PORT=143
MAXDAEMONS=40
MAXPERIP=20
PIDFILE=/var/run/imapd.pid
TCPDOPTS="-nodnslookup -noidentlookup"
LOGGEROPTS="-name=imapd"
IMAP_CAPABILITY="IMAP4rev1 UIDPLUS CHILDREN NAMESPACE THREAD=ORDEREDSUBJECT THREAD=REFERENCES SORT QUOTA IDLE"
IMAP_KEYWORDS=1
IMAP_ACL=1
IMAP_CAPABILITY_ORIG="IMAP4rev1 UIDPLUS CHILDREN NAMESPACE THREAD=ORDEREDSUBJECT THREAD=REFERENCES SORT QUOTA AUTH=CRAM-MD5 AUTH=CRAM-SHA1 AUTH=CRAM-SHA256 IDLE"
IMAP_PROXY=0
IMAP_PROXY_FOREIGN=0
IMAP_IDLE_TIMEOUT=20
IMAP_MAILBOX_SANITY_CHECK=1
IMAP_CAPABILITY_TLS="$IMAP_CAPABILITY AUTH=PLAIN"
IMAP_CAPABILITY_TLS_ORIG="$IMAP_CAPABILITY_ORIG AUTH=PLAIN"
IMAP_DISABLETHREADSORT=0
IMAP_CHECK_ALL_FOLDERS=0
IMAP_OBSOLETE_CLIENT=0
IMAP_UMASK=022
IMAP_ULIMITD=65536
IMAP_USELOCKS=1
IMAP_SHAREDINDEXFILE=/etc/courier/shared/index
IMAP_ENHANCEDIDLE=0
IMAP_TRASHFOLDERNAME=Trash
IMAP_EMPTYTRASH=Trash:7
IMAP_MOVE_EXPUNGE_TO_TRASH=0
SENDMAIL=/usr/sbin/sendmail
HEADERFROM=X-IMAP-Sender
IMAPDSTART=YES
MAILDIRPATH=/var/mail/
authmodulelist="authmysql"
Lokale Versendungen unter Postfix funktionieren soweit Problemlos (Telnet).
Wenn ich mich jetzt versuche über den Imap Server via Telnet einzuloggen passiert folgendes:
linux:~ # telnet localhost imap
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
* OK [CAPABILITY IMAP4rev1 UIDPLUS CHILDREN NAMESPACE THREAD=ORDEREDSUBJECT THREAD=REFERENCES SORT QUOTA IDLE ACL ACL2=UNION] Courier-IMAP ready. Copyright 1998-2008 Double Precision, Inc. See COPYING for distribution information.
a LOGIN feuer 12345
* BYE [ALERT] Fatal error: Account's mailbox directory is not owned by the correct uid or gid:
Connection closed by foreign host.
So, ich kann natürlich Englisch und verstehe auch was er von mir will. Aber nach meiner Meinung sind die Permissions richtig gesetzt.
getfacl /var/mail/feuer/
linux:~ # getfacl /var/mail/feuer/
getfacl: Removing leading '/' from absolute path names
# file: var/mail/feuer/
# owner: vmail
# group: vmail
user::rwx
group::rwx
other::rwx
Und hier noch ein Tail von der Mail-Log (ist aber unwichtig denke ich):
Oct 20 12:21:58 linux authdaemond: Installation complete: authcustom
Oct 20 12:21:58 linux authdaemond: Installing libauthpipe
Oct 20 12:21:58 linux authdaemond: libauthpipe.so: cannot open shared object file: No such file or directory
Oct 20 12:21:58 linux postfix/qmgr[13899]: 6279C12C77C: from=<test@test.de>, size=356, nrcpt=1 (queue active)
Oct 20 12:21:59 linux postfix/virtual[13982]: 6279C12C77C: to=<feuer@linux.de>, relay=virtual, delay=1599, delays=1598/0.49/0/0.11, dsn=2.0.0, status=sent (delivered to maildir)
Oct 20 12:21:59 linux postfix/qmgr[13899]: 6279C12C77C: removed
Oct 20 12:22:21 linux imapd: Connection, ip=[::ffff:127.0.0.1]
Oct 20 12:22:26 linux imapd: feuer: Account's mailbox directory is not owned by the correct uid or gid
Oct 20 12:51:28 linux imapd: Connection, ip=[::ffff:127.0.0.1]
Oct 20 12:51:41 linux imapd: feuer: Account's mailbox directory is not owned by the correct uid or gid
Also, welche UID, GID erwartet Courier denn? Ich habe es mit vmail versucht, mit feuer, mit postfix. Alles Fehlanzeige. Ich bin froh das ich mittlerweile überhaupt soweit gekommen bin. Ich mache jetzt schon eine Woche an dem Server rum und habe schon haufenweise "Tutorials" gelesen, egal ob Englisch oder Deutsch.
Ich hoffe jemand von euch weiss welche Permissions er erwartet..ich glaube das ich irgendwie auf dem Schlauch stehe. Wenn noch mehr Infos benötigt werden bitte bescheid sagen.
Vielen Dank
Gruß Cyd
Distribution: SLES 10 SP2
Softwareversionen:
• Postfix 2.6.1-10.2
• Courier-Imap 4.5.1-5.5
postfix -n (PostConf)
alias_maps = mysql:/etc/postfix/mysql_aliases.cf
append_dot_mydomain = no
biff = no
bounce_queue_lifetime = 1d
broken_sasl_auth_clients = yes
config_directory = /etc/postfix
daemon_directory = /usr/lib/postfix
delay_warning_time = 2h
html_directory = /usr/share/doc/packages/postfix/html
inet_interfaces = all
local_header_rewrite_clients = $mydestination
mailbox_transport = virtual
mailq_path = /usr/bin/mailq
manpage_directory = /usr/share/man
message_size_limit = 8000000
mydestination = mysql:/etc/postfix/mysql_destination.cf
mydomain = mail.linux.de
myhostname = mail.linux.de
mynetworks = 192.168.0.0/24 , 127.0.0.0/8
myorigin = mail.linux.de
newaliases_path = /usr/bin/newaliases
readme_directory = /usr/share/doc/packages/postfix/README_FILES
recipient_canonical_maps = mysql:/etc/postfix/mysql_recipient_canonical.cf
remote_header_rewrite_domain = $mydestination
sample_directory = /usr/share/doc/packages/postfix/samples
sender_canonical_maps = mysql:/etc/postfix/mysql_sender_canonical.cf
sendmail_path = /usr/sbin/sendmail
setgid_group = vmail
smtpd_banner = $myhostname ESMTP $mail_name (Debian/GNU)
smtpd_delay_reject = yes
smtpd_helo_required = yes
smtpd_recipient_restrictions = permit_mynetworks, permit_sasl_authenticated, reject_invalid_hostname, reject_non_fqdn_hostname, reject_non_fqdn_sender, reject_non_fqdn_recipient, reject_unknown_sender_domain, reject_unknown_recipient_domain, reject_unauth_destination, reject_unlisted_recipient, reject_unauth_pipelining
smtpd_sasl_auth_enable = yes
smtpd_sasl_local_domain = $mydestination
smtpd_sasl_security_options = noanonymous
transport_maps = mysql:/etc/postfix/mysql_transport.cf
transport_retry_time = 10s
trigger_timeout = 20s
unknown_local_recipient_reject_code = 450
virtual_alias_maps = mysql:/etc/postfix/mysql_email2email.cf mysql:/etc/postfix/mysql_forwarding.cf
virtual_gid_maps = static:5000
virtual_mailbox_base = /home/vmail
virtual_mailbox_domains = mysql:/etc/postfix/mysql_destination_virtual.cf
virtual_mailbox_maps = mysql:/etc/postfix/mysql_mailboxes.cf
virtual_uid_maps = static:5000
Courier-Imap Conf (Imapd)
ADDRESS=127.0.0.1
PORT=143
MAXDAEMONS=40
MAXPERIP=20
PIDFILE=/var/run/imapd.pid
TCPDOPTS="-nodnslookup -noidentlookup"
LOGGEROPTS="-name=imapd"
IMAP_CAPABILITY="IMAP4rev1 UIDPLUS CHILDREN NAMESPACE THREAD=ORDEREDSUBJECT THREAD=REFERENCES SORT QUOTA IDLE"
IMAP_KEYWORDS=1
IMAP_ACL=1
IMAP_CAPABILITY_ORIG="IMAP4rev1 UIDPLUS CHILDREN NAMESPACE THREAD=ORDEREDSUBJECT THREAD=REFERENCES SORT QUOTA AUTH=CRAM-MD5 AUTH=CRAM-SHA1 AUTH=CRAM-SHA256 IDLE"
IMAP_PROXY=0
IMAP_PROXY_FOREIGN=0
IMAP_IDLE_TIMEOUT=20
IMAP_MAILBOX_SANITY_CHECK=1
IMAP_CAPABILITY_TLS="$IMAP_CAPABILITY AUTH=PLAIN"
IMAP_CAPABILITY_TLS_ORIG="$IMAP_CAPABILITY_ORIG AUTH=PLAIN"
IMAP_DISABLETHREADSORT=0
IMAP_CHECK_ALL_FOLDERS=0
IMAP_OBSOLETE_CLIENT=0
IMAP_UMASK=022
IMAP_ULIMITD=65536
IMAP_USELOCKS=1
IMAP_SHAREDINDEXFILE=/etc/courier/shared/index
IMAP_ENHANCEDIDLE=0
IMAP_TRASHFOLDERNAME=Trash
IMAP_EMPTYTRASH=Trash:7
IMAP_MOVE_EXPUNGE_TO_TRASH=0
SENDMAIL=/usr/sbin/sendmail
HEADERFROM=X-IMAP-Sender
IMAPDSTART=YES
MAILDIRPATH=/var/mail/
authmodulelist="authmysql"
Lokale Versendungen unter Postfix funktionieren soweit Problemlos (Telnet).
Wenn ich mich jetzt versuche über den Imap Server via Telnet einzuloggen passiert folgendes:
linux:~ # telnet localhost imap
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
* OK [CAPABILITY IMAP4rev1 UIDPLUS CHILDREN NAMESPACE THREAD=ORDEREDSUBJECT THREAD=REFERENCES SORT QUOTA IDLE ACL ACL2=UNION] Courier-IMAP ready. Copyright 1998-2008 Double Precision, Inc. See COPYING for distribution information.
a LOGIN feuer 12345
* BYE [ALERT] Fatal error: Account's mailbox directory is not owned by the correct uid or gid:
Connection closed by foreign host.
So, ich kann natürlich Englisch und verstehe auch was er von mir will. Aber nach meiner Meinung sind die Permissions richtig gesetzt.
getfacl /var/mail/feuer/
linux:~ # getfacl /var/mail/feuer/
getfacl: Removing leading '/' from absolute path names
# file: var/mail/feuer/
# owner: vmail
# group: vmail
user::rwx
group::rwx
other::rwx
Und hier noch ein Tail von der Mail-Log (ist aber unwichtig denke ich):
Oct 20 12:21:58 linux authdaemond: Installation complete: authcustom
Oct 20 12:21:58 linux authdaemond: Installing libauthpipe
Oct 20 12:21:58 linux authdaemond: libauthpipe.so: cannot open shared object file: No such file or directory
Oct 20 12:21:58 linux postfix/qmgr[13899]: 6279C12C77C: from=<test@test.de>, size=356, nrcpt=1 (queue active)
Oct 20 12:21:59 linux postfix/virtual[13982]: 6279C12C77C: to=<feuer@linux.de>, relay=virtual, delay=1599, delays=1598/0.49/0/0.11, dsn=2.0.0, status=sent (delivered to maildir)
Oct 20 12:21:59 linux postfix/qmgr[13899]: 6279C12C77C: removed
Oct 20 12:22:21 linux imapd: Connection, ip=[::ffff:127.0.0.1]
Oct 20 12:22:26 linux imapd: feuer: Account's mailbox directory is not owned by the correct uid or gid
Oct 20 12:51:28 linux imapd: Connection, ip=[::ffff:127.0.0.1]
Oct 20 12:51:41 linux imapd: feuer: Account's mailbox directory is not owned by the correct uid or gid
Also, welche UID, GID erwartet Courier denn? Ich habe es mit vmail versucht, mit feuer, mit postfix. Alles Fehlanzeige. Ich bin froh das ich mittlerweile überhaupt soweit gekommen bin. Ich mache jetzt schon eine Woche an dem Server rum und habe schon haufenweise "Tutorials" gelesen, egal ob Englisch oder Deutsch.
Ich hoffe jemand von euch weiss welche Permissions er erwartet..ich glaube das ich irgendwie auf dem Schlauch stehe. Wenn noch mehr Infos benötigt werden bitte bescheid sagen.
Vielen Dank
Gruß Cyd