Confixx 3 Pro + Webmail funzt nicht

Plesk, Confixx, Froxlor, SysCP, SeCoTo, IspCP, etc.
kuntho
Posts: 149
Joined: 2004-10-27 14:22
Location: Küps
Contact:
 

Re: Confixx 3 Pro + Webmail funzt nicht

Post by kuntho »

/etc/postfix/main.cf:

Code: Select all

smtpd_recipient_restrictions = permit_mynetworks,  permit_sasl_authenticated, reject_unauth_destination
und dann im Mailclient entsprechende Login - Informationen verwenden. Beispielsweise bei MS Outlook:

"Der Postausgangsserver (SMTP) erfordert Authentifizierung"

und

"Gleiche Einstellungen wie für Posteingangsserver verwenden"

Dann machst

tail -f /var/log/mail

und versuchst gleichzeitig vom Mail - Client aus eine Mail zu versenden.
chris_linx
Posts: 23
Joined: 2005-03-25 17:50
 

Re: Confixx 3 Pro + Webmail funzt nicht

Post by chris_linx »

hab ich gemacht, kommt nur bei Outlook" Es kann keine Verbindung mit dem Postausgangsserver SMTP hergestellt werden" und der server bringt mir auch keine meldung, nur halt die standart anzeige das der pop angerufen wurde. (qpopper)
kuntho
Posts: 149
Joined: 2004-10-27 14:22
Location: Küps
Contact:
 

Re: Confixx 3 Pro + Webmail funzt nicht

Post by kuntho »

bist auch sicher, dass der richtige SMTP - Server im Mailclient eingetragen ist? Sonst müsste da zumindest was im Log stehen.
chris_linx
Posts: 23
Joined: 2005-03-25 17:50
 

Re: Confixx 3 Pro + Webmail funzt nicht

Post by chris_linx »

smtp.domain.tld ! Stimmt das nicht?

Was mich nur wundert in der main.cf von Postfix

mydestination = $myhostname, localhost.$mydomain, $mydomain, smtp.$mydomain
myhostname = herucles.local

muss bei myhostname keine domain oder sowas hin? Bzw glaube ich das die main.cf gar nicht konfiguriert ist.
kuntho
Posts: 149
Joined: 2004-10-27 14:22
Location: Küps
Contact:
 

Re: Confixx 3 Pro + Webmail funzt nicht

Post by kuntho »

kommt drauf an, ob das auch wirklich auf die IP aufgelöst wird, auf der der SMTP - Server läuft.
chris_linx
Posts: 23
Joined: 2005-03-25 17:50
 

Re: Confixx 3 Pro + Webmail funzt nicht

Post by chris_linx »

also smtp.domain.tld wird auf die Server-IP aufgelöst.

Wenn ich die Mails intern über webmail verschicke funktioniert das auch.
die mails landen dann auch in dem jeweiligen postfach. Geht aber nur intern.
kuntho
Posts: 149
Joined: 2004-10-27 14:22
Location: Küps
Contact:
 

Re: Confixx 3 Pro + Webmail funzt nicht

Post by kuntho »

Dann muss aber im Mail - Log zumindes ein "connect" drin stehen, wenn Du versuchst von extern ne Mail abzusetzen.
chris_linx
Posts: 23
Joined: 2005-03-25 17:50
 

Re: Confixx 3 Pro + Webmail funzt nicht

Post by chris_linx »

leider gar nichts.
kuntho
Posts: 149
Joined: 2004-10-27 14:22
Location: Küps
Contact:
 

Re: Confixx 3 Pro + Webmail funzt nicht

Post by kuntho »

folgendes muss in der /etc/postfix/main.cf stehen:

Code: Select all

mynetworks = 127.0.0.0/8, [SERVER-IP]/32
chris_linx
Posts: 23
Joined: 2005-03-25 17:50
 

Re: Confixx 3 Pro + Webmail funzt nicht

Post by chris_linx »

jetzt bekomm ich folgende meldung im mail log:


Apr 24 20:38:05 Hercules postfix/qmgr[698]: A3C522316F: from=<wwwrun@herucles.local>, size=536, nrcpt=1 (queue active)
Apr 24 20:38:05 Hercules postfix/smtp[700]: fatal: specify a password table via the `smtp_sasl_password_maps' configuration parameter
Apr 24 20:38:06 Hercules postfix/master[686]: warning: process /usr/lib/postfix/smtp pid 700 exit status 1
Apr 24 20:38:06 Hercules postfix/master[686]: warning: /usr/lib/postfix/smtp: bad command startup -- throttling
Apr 24 20:38:42 Hercules popper[731]: Stats: web2p2 0 0 0 0 p5499533B.dip.t-dialin.net 84.153.83.59 [pop_updt.c:296]
Apr 24 20:39:06 Hercules postfix/smtp[737]: fatal: specify a password table via the `smtp_sasl_password_maps' configuration parameter
Apr 24 20:39:07 Hercules postfix/master[686]: warning: process /usr/lib/postfix/smtp pid 737 exit status 1
Apr 24 20:39:07 Hercules postfix/master[686]: warning: /usr/lib/postfix/smtp: bad command startup -- throttling


aber die SMTP Server kann trotzdem nicht erreicht werden.
kuntho
Posts: 149
Joined: 2004-10-27 14:22
Location: Küps
Contact:
 

Re: Confixx 3 Pro + Webmail funzt nicht

Post by kuntho »

steht doch alles da:

Code: Select all

Apr 24 20:38:05 Hercules postfix/smtp[700]: fatal: specify a password table via the `smtp_sasl_password_maps' configuration parameter 
er weiss einfach nícht, wogegen er authentifizieren soll. Gib ihm ein entsprechendes File vor (bsp. /etc/passwd) und die Sache sollte funzen.
chris_linx
Posts: 23
Joined: 2005-03-25 17:50
 

Re: Confixx 3 Pro + Webmail funzt nicht

Post by chris_linx »

hi,

hab die zeile nun in die main.cf reingeschrieben.

folgende log kommt jetzt:

Apr 25 10:22:09 Hercules postfix/qmgr[6921]: A3C522316F: from=<wwwrun@herucles.local>, size=536, nrcpt=1 (queue active)
Apr 25 10:22:09 Hercules postfix/smtp[6923]: fatal: open database /etc/passwd.db: No such file or directory
Apr 25 10:22:10 Hercules postfix/master[6909]: warning: process /usr/lib/postfix/smtp pid 6923 exit status 1
Apr 25 10:22:10 Hercules postfix/master[6909]: warning: /usr/lib/postfix/smtp: bad command startup -- throttling

aber hat das damit zu tun, das der SMTP überhaupt erreichbar ist?
chris_linx
Posts: 23
Joined: 2005-03-25 17:50
 

Re: Confixx 3 Pro + Webmail funzt nicht

Post by chris_linx »

hmmm, keiner eine Idee?
kuntho
Posts: 149
Joined: 2004-10-27 14:22
Location: Küps
Contact:
 

Re: Confixx 3 Pro + Webmail funzt nicht

Post by kuntho »

Code: Select all

Apr 25 10:22:09 Hercules postfix/smtp[6923]: fatal: open database /etc/passwd.db: No such file or directory 
Also offenbar sucht er da nicht das passwd - File sondern ein hash - table.
kannst ja mal ain entsprechendes mapfile erstellen /analog zur /etc/postfix virtual beispielsweise und mit postmap [DATEINAME] das entsprechende DB - File erzeugen; nur mal so zum Testen

Code: Select all

Apr 25 10:22:10 Hercules postfix/master[6909]: warning: process /usr/lib/postfix/smtp pid 6923 exit status 1 
Damit hat sich der SMTP - Prozess verabschiedet

Code: Select all

Apr 25 10:22:10 Hercules postfix/master[6909]: warning: /usr/lib/postfix/smtp: bad command startup -- throttling 
und ist nicht mehr erreichbar. Um das Problem zu lösen, müsste man wissen, wie Dein Postfix konfiguriert ist (/etc/postfix/main.cf und /etc/postfix/master.cf) und wie der saslauthd konfiguriert ist (usr/lib/sasl/smtpd.conf bzw. usr/lib/sasl2/smtpd.conf und /etc/authlib/authdaemonrc) und ausserdem den enstprechenden Startskript (beispielsweise (etc/rc.d/saslauthd). Dann kann man ne Aussage machen, wo eventuelld er Haken ist. Schick mir ne PN, dann können wir die Sache vielleicht etwas abkürzen.
kuntho
Posts: 149
Joined: 2004-10-27 14:22
Location: Küps
Contact:
 

Re: Confixx 3 Pro + Webmail funzt nicht

Post by kuntho »

Der Vollständigkeit halber, falls jemand ein ähnliches Problem hat. Wir haben bisher folgendes geändert:

/usr/lib/sasl(2)/smtpd.conf:

Code: Select all

pwcheck_method: saslauthd 
pwcheck_method: saslauthd 
mech_list: PLAIN LOGIN CRAM-MD5 DIGEST-MD5 
log_level: 3
in /etc/postfix/main.cf fehlten einige Einträge bzw. waren falsch oder unvollständig. Folgendes wurde geändert / ergänzt:

Code: Select all

myhostname = [SERVERNAME] 
mydomain = [SERVERNAME] 
inet_interfaces = all 
mydestination = $myhostname, localhost.$mydomain, $mydomain, smtp.$mydomain 
mynetworks_style = host 
mynetworks = 127.0.0.0/8, [SERVER-IP]/32 
alias_maps = hash:/etc/aliases 
alias_database = hash:/etc/aliases 
home_mailbox = Mailbox 
mail_spool_directory = /var/spool/mail 
fast_flush_domains = $relay_domains 
smtpd_banner = $myhostname ESMTP $mail_name
SMTP funktioniert wieder, auch die Anmeldung vom Mail - Client (Outlook) aus. Im Moment gibt es noch paar Probleme beim Mailempfang, offenbar ist da noch ein Fehler bei der Konfiguration der Mailboxen. Bin allerdings selbst nicht über den aktuellen Stand im Bilde. Sobald das gefixt ist, werde ich es hier noch posten.

Gruß KunTho
Post Reply