Page 1 of 1

cyrus/postfix: IMAP funktioniert aber POP nicht?

Posted: 2003-05-19 22:18
by yuko
weiss jemand woran das liegt, alle mails kommen ganz normal an, man kann sich aber nicht per pop anmelden...

server: suse linux 8.1

Re: cyrus/postfix: IMAP funktioniert aber POP nicht?

Posted: 2003-05-19 22:20
by mark
Hi,

schau mal in die /etc/cyrus.conf , bzw. zeig die mal hier.

pop3 darf nicht auskommentiert sein.

Gruß
Mark

Re: cyrus/postfix: IMAP funktioniert aber POP nicht?

Posted: 2003-05-19 22:22
by yuko

Code: Select all

START {
  # do not delete this entry!
  recover       cmd="ctl_cyrusdb -r"
  mboxlist      cmd="ctl_cyrusdb -r"
  deliver       cmd="ctl_deliver -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=0
  imaps         cmd="imapd -s" listen="imaps" prefork=0
  pop3          cmd="pop3d" listen="pop3" prefork=0
  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

  # 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

  squatter cmd="squatter -r user" period=1440

  # 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
}

Re: cyrus/postfix: IMAP funktioniert aber POP nicht?

Posted: 2003-05-19 22:27
by mark
OK. Das sieht gut aus...

Eventuell hast du schon einen Dienst auf Port 110 lauschen...

Mach mal

Code: Select all

lsof -i -n -P |grep :110
Eventuell der inetd oder so... (Schau mal in die inetd.conf (oder xinetd) ob da pop3 ausgewählt ist).

Gruß
Mark

Re: cyrus/postfix: IMAP funktioniert aber POP nicht?

Posted: 2003-05-19 22:34
by yuko
auf 110 laeuft das

Code: Select all

xinetd     628   root    7u  IPv4   3103       TCP *:110 (LISTEN)


habe aber das gefühl das die inetd.conf falsch ist, weil das verzeichnis /usr/cyrus/bin/ gibt es gar nicht

Code: Select all

imap    stream  tcp     nowait  cyrus   /usr/cyrus/bin/imapd    imapd
pop3    stream  tcp     nowait  cyrus   /usr/cyrus/bin/pop3d    pop3d
vielen dank fuer die hilfe, benutze uebrigens das ueberaus praktische cyrus-control von dir... (fuer unsere confixx freunde)[/code]

Re: cyrus/postfix: IMAP funktioniert aber POP nicht?

Posted: 2003-05-19 22:36
by mark
Hi,

Cyrus läuft OHNE (x)inetd... (das war mal in ganz alten versionen so)

Wirf die cyrus Einträge aus der xinetd configuration raus und starte den inetd und cyrus imap neu.

Gruß
Mark

Re: cyrus/postfix: IMAP funktioniert aber POP nicht?

Posted: 2003-05-19 22:37
by yuko
in der xinetd.conf steht das

Code: Select all


#
# xinetd.conf
#
# Copyright (c) 1998-2001 SuSE GmbH Nuernberg, Germany.
# Copyright (c) 2002 SuSE Linux AG, Nuernberg, Germany.
#

defaults
{
        log_type        = FILE /var/log/xinetd.log
        log_on_success  = HOST EXIT DURATION
        log_on_failure  = HOST ATTEMPT RECORD
#        only_from       = localhost
        instances       = 10
}

service ftp
{
        socket_type     = stream
        protocol        = tcp
        wait            = no
        user            = root
        server          = /usr/sbin/vsftpd
#       server_args     = -a
        log_on_success  = HOST PID EXIT DURATION
        log_on_failure  = HOST ATTEMPT RECORD
}


service pop3
{
        socket_type = stream
        protocol = tcp
        wait = no
        user = root
        server = /usr/sbin/popper
        server_args = qpopper -s
        log_on_success  = HOST PID EXIT DURATION
        log_on_failure  = HOST ATTEMPT RECORD
}

# *grrr* SuSE-8.1: qpopper.rpm compiled without ssl/tls-support
service pop3s
{
        socket_type = stream
        protocol = tcp
        wait = no
        user = root
        server = /usr/sbin/stunnel
        server_args = qpopper -l /usr/sbin/popper -- -R -s
        log_on_success  = HOST PID EXIT DURATION
        log_on_failure  = HOST ATTEMPT RECORD
}

#service ident
#{
#       socket_type     = stream
#       protocol        = tcp
#       wait            = no
#       user            = nobody
#       server          = /usr/sbin/in.identd
#       server_args     = -w -t120
#}

# includedir /etc/xinetd.d

Re: cyrus/postfix: IMAP funktioniert aber POP nicht?

Posted: 2003-05-19 22:42
by mark
Boeser Block:

Code: Select all

service pop3 
{ 
        socket_type = stream 
        protocol = tcp 
        wait = no 
        user = root 
        server = /usr/sbin/popper 
        server_args = qpopper -s 
        log_on_success  = HOST PID EXIT DURATION 
        log_on_failure  = HOST ATTEMPT RECORD 
} 
Auskommentieren. Du willst du nicht qpopper nutzen, oder ?

Gruß
mark

Re: cyrus/postfix: IMAP funktioniert aber POP nicht?

Posted: 2003-05-19 22:43
by mark
Und den auch:

Code: Select all

# *grrr* SuSE-8.1: qpopper.rpm compiled without ssl/tls-support 
service pop3s 
{ 
        socket_type = stream 
        protocol = tcp 
        wait = no 
        user = root 
        server = /usr/sbin/stunnel 
        server_args = qpopper -l /usr/sbin/popper -- -R -s 
        log_on_success  = HOST PID EXIT DURATION 
        log_on_failure  = HOST ATTEMPT RECORD 
} 
Eventuell willste ja mal pop3s mit cyrus machen :)

Gruß
Mark

Re: cyrus/postfix: IMAP funktioniert aber POP nicht?

Posted: 2003-05-19 22:47
by yuko
ok, sehr fein jetzt komm ich drauf, aber die mails die auf dem imap konto liegen werden nicht per pop3 abgeholt!

eine letzte idee?

tausend dank.

Re: cyrus/postfix: IMAP funktioniert aber POP nicht?

Posted: 2003-05-19 22:59
by mark
yuko wrote:ok, sehr fein jetzt komm ich drauf, aber die mails die auf dem imap konto liegen werden nicht per pop3 abgeholt!

eine letzte idee?

tausend dank.
Werden sie sicherlich. Aber nur die, die im Ordner INBOX liegen. Die Unterordner werden via pop3 nicht abgerufen.

BTW: Ich würde dann generell IMAP verwenden.

Gruß
Mark

Re: cyrus/postfix: IMAP funktioniert aber POP nicht?

Posted: 2003-05-19 23:03
by yuko
nein, nein,
in INBOX liegen mails...
und ein paar leute auf unserem server wollen halt gern pop...

gruesse.

Re: cyrus/postfix: IMAP funktioniert aber POP nicht?

Posted: 2003-05-19 23:05
by mark
Dann schau mal am besten mit telnet direkt nach...

z.B. so:

Code: Select all

telnet server 110
user <login>
pass <passwort>
list
quit
Edit:
Und noch mnal zur Kontrolle:

Code: Select all

lsof -i -n -P |grep :110 

Gruß
Mark

Re: cyrus/postfix: IMAP funktioniert aber POP nicht?

Posted: 2003-05-19 23:16
by yuko
sorry,
hatte cyrus nicht neu gestartet...

tausend dank... fuer die prompte hilfe

Re: cyrus/postfix: IMAP funktioniert aber POP nicht?

Posted: 2003-05-19 23:17
by mark
Gern geschehen...

Gruß
Mark

Re: cyrus/postfix: IMAP funktioniert aber POP nicht?

Posted: 2003-05-20 08:58
by yuko
ganz geht es doch noch nicht der sender bekommt folgende mail zurueck, obwohl die mails ankommen?

Code: Select all

The Postfix program

<user@domain.net>: data format error. Command output: : Mailbox does not
    exist : Mailbox does not exist : Mailbox does not exist : Mailbox does not
    exist
Reporting-MTA: dns; domain.net
Arrival-Date: Tue, 20 May 2003 08:35:00 +0200 (CEST)

Final-Recipient: rfc822; user@domain.net
Action: failed
Status: 5.0.0
Diagnostic-Code: X-Postfix; data format error. Command output: : Mailbox does
    not exist : Mailbox does not exist : Mailbox does not exist : Mailbox does
    not exist
user und domain hab ich ausgetauscht

Re: cyrus/postfix: IMAP funktioniert aber POP nicht?

Posted: 2003-05-20 19:48
by mark
Hi,

das liegt wahrscheinlich an deiner Postfix config (virtual).

Wenn du deine Domain nur in mydestination drin hast, dann wird auch versucht local an "user" auszuliefern. Sollte aber wahrscheinlich "web1p1" oder so sein... Die E-Mail Adressen müssen in der virtualtable umgesetzt werden.

z.b. /etc/postfix/virtual:

Code: Select all

user@domain local_user
Gruß
Mark

Re: cyrus/postfix: IMAP funktioniert aber POP nicht?

Posted: 2003-05-20 20:52
by yuko
muss erstmal noch investigativ taetig werden, weil in virtual stehen alle drin und die mails kommen ja lustigerweise auch an, nur der absender
denkt halt sie kommen nicht an?

yuko

Re: cyrus/postfix: IMAP funktioniert aber POP nicht?

Posted: 2003-05-20 20:54
by mark
Hi,

was mich dabei ein wenig wundert:
Diagnostic-Code: X-Postfix; data format error. Command output: : Mailbox does
not exist : Mailbox does not exist : Mailbox does not exist : Mailbox does
not exist
Das "Mailbox does not exist" sich so oft wiederholt...

Gruß
Mark

Re: cyrus/postfix: IMAP funktioniert aber POP nicht?

Posted: 2003-05-22 09:51
by yuko
ich hatte irgendwann mal den mail server name von dieser komischen 1&1 domain (zb. p734734289.pureserver.info) auf mail.mydomain.net gestellt, und jetzt nach dem zurueckstellen geht das wieder.

weiss jemand wie man so einen confixx/1&1 server auf die hauptdomain legen kann, oder bedeutet das viel arbeit?