Postfix nie wysy

Konfiguracja serwerów, usług, itp.
Awatar użytkownika
shyte
Beginner
Posty: 165
Rejestracja: 04 grudnia 2009, 00:06

Postfix nie wysyła e-maili

Post autor: shyte »

Zainstalowałem sobie programy postfix i dovecot.

Za pomocą programu evolution łączę się ze skrzynką i próbuję wysłać e-mail na moją skrzynkę gmail.com, to nic nie dochodzi.

Program wyświetla takie informacje:

Kod: Zaznacz cały

błąd podczas analizowania katalogów serwer imap oczko21.com
Mój plik /etc/postfix/main.cf

Kod: Zaznacz cały

cat /etc/postfix/main.cf
# See /usr/share/postfix/main.cf.dist for a commented, more complete version


# Debian specific:  Specifying a file name will cause the first
# line of that file to be used as the name.  The Debian default
# is /etc/mailname.
#myorigin = /etc/mailname

smtpd_banner = $myhostname ESMTP $mail_name (Debian/GNU)
biff = no

# appending .domain is the MUA's job.
append_dot_mydomain = no

# Uncomment the next line to generate "delayed mail" warnings
#delay_warning_time = 4h

readme_directory = no

# TLS parameters
smtpd_tls_cert_file=/etc/ssl/certs/ssl-cert-snakeoil.pem
smtpd_tls_key_file=/etc/ssl/private/ssl-cert-snakeoil.key
smtpd_use_tls=yes
smtpd_tls_session_cache_database = btree:${data_directory}/smtpd_scache
smtp_tls_session_cache_database = btree:${data_directory}/smtp_scache

# See /usr/share/doc/postfix/TLS_README.gz in the postfix-doc package for
# information on enabling SSL in the smtp client.

myhostname = oczko21.com
alias_maps = hash:/etc/aliases
alias_database = hash:/etc/aliases
myorigin = /etc/mailname
mydestination = oczko21.com, localhost.com, , localhost, admin@oczko21.com
relayhost =
mynetworks = 127.0.0.0/8 [::ffff:127.0.0.0]/104 [::1]/128
mailbox_command = procmail -a "$EXTENSION"
mailbox_size_limit = 0
recipient_delimiter = +
inet_interfaces = all
Awatar użytkownika
adasiek_j
Beginner
Posty: 141
Rejestracja: 24 kwietnia 2010, 22:24
Lokalizacja: Warszawa

Post autor: adasiek_j »

Postfix to nie imap, tylko SMTP. Podaj logi dovecot.

Adam
Cyphermen
Beginner
Posty: 426
Rejestracja: 24 maja 2009, 10:56
Lokalizacja: cze-wa

Post autor: Cyphermen »

Błąd dotyczy raczej imapa gdyż o nim mowa w komunikacie ale kolega wkleił konfig postfixa gdyż myslał że to problem z wysyłaniem czyli smtp tak mi się zdaje :)
Awatar użytkownika
adasiek_j
Beginner
Posty: 141
Rejestracja: 24 kwietnia 2010, 22:24
Lokalizacja: Warszawa

Post autor: adasiek_j »

Nie ma co sie zdawać, tak jest. Ale nadal brak logów dovecota.
Awatar użytkownika
VMLine
Beginner
Posty: 137
Rejestracja: 28 lutego 2011, 08:44
Lokalizacja: Poznań / Słupsk

Post autor: VMLine »

Imap rozjechany...
Awatar użytkownika
shyte
Beginner
Posty: 165
Rejestracja: 04 grudnia 2009, 00:06

Post autor: shyte »

logi dovecota

Kod: Zaznacz cały

2011-04-16 20:04:37 dovecot: Info: Dovecot v1.2.15 starting up (core dumps disabled)
2011-04-16 20:04:38 auth(default): Info: new auth connection: pid=13116
2011-04-16 20:04:38 auth(default): Info: new auth connection: pid=13115
2011-04-16 20:04:38 auth(default): Info: new auth connection: pid=13118
2011-04-16 20:04:38 auth(default): Info: new auth connection: pid=13113
2011-04-16 20:04:38 auth(default): Info: new auth connection: pid=13117
2011-04-16 20:04:38 auth(default): Info: new auth connection: pid=13114
2011-04-16 20:04:45 auth(default): Info: client in: AUTH    1    PLAIN    service=imap    lip=88.198.38.70    rip=213.192.91.91    lport=143    rport=21484    resp=<hidden>
2011-04-16 20:04:45 auth-worker(default): Info: pam(testmail,213.192.91.91): lookup service=dovecot
2011-04-16 20:04:45 auth-worker(default): Info: pam(testmail,213.192.91.91): #1/1 style=1 msg=Password: 
2011-04-16 20:04:45 auth(default): Info: client out: OK    1    user=testmail
2011-04-16 20:04:45 auth(default): Info: master in: REQUEST    1    13117    1
2011-04-16 20:04:45 auth(default): Info: passwd(testmail,213.192.91.91): lookup
2011-04-16 20:04:45 auth(default): Info: master out: USER    1    testmail    system_groups_user=testmail    uid=1001    gid=1001    home=/home/testmail
2011-04-16 20:04:45 imap-login: Info: Login: user=<testmail>, method=PLAIN, rip=213.192.91.91, lip=88.198.38.70
2011-04-16 20:04:45 IMAP(testmail): Error: mail_location not set and autodetection failed: Mail storage autodetection failed with home=/home/testmail
2011-04-16 20:04:45 IMAP(testmail): Fatal: Namespace initialization failed
2011-04-16 20:04:45 auth(default): Info: new auth connection: pid=13120
2011-04-16 20:05:03 auth(default): Info: client in: AUTH    1    PLAIN    service=imap    lip=88.198.38.70    rip=213.192.91.91    lport=143    rport=21488    resp=<hidden>
2011-04-16 20:05:03 auth-worker(default): Info: pam(testmail,213.192.91.91): lookup service=dovecot
2011-04-16 20:05:03 auth-worker(default): Info: pam(testmail,213.192.91.91): #1/1 style=1 msg=Password: 
2011-04-16 20:05:04 auth(default): Info: client out: OK    1    user=testmail
2011-04-16 20:05:04 auth(default): Info: master in: REQUEST    2    13120    1
2011-04-16 20:05:04 auth(default): Info: passwd(testmail,213.192.91.91): lookup
2011-04-16 20:05:04 auth(default): Info: master out: USER    2    testmail    system_groups_user=testmail    uid=1001    gid=1001    home=/home/testmail
2011-04-16 20:05:04 imap-login: Info: Login: user=<testmail>, method=PLAIN, rip=213.192.91.91, lip=88.198.38.70
2011-04-16 20:05:04 IMAP(testmail): Error: mail_location not set and autodetection failed: Mail storage autodetection failed with home=/home/testmail
2011-04-16 20:05:04 IMAP(testmail): Fatal: Namespace initialization failed
2011-04-16 20:05:04 auth(default): Info: new auth connection: pid=13129

Awatar użytkownika
rmika
Beginner
Posty: 117
Rejestracja: 14 czerwca 2007, 08:55

Post autor: rmika »

Wygląda to jak jakby nie było katalogu testmail, bądź np. ten katalog ma złe prawa dostępu.
Awatar użytkownika
adasiek_j
Beginner
Posty: 141
Rejestracja: 24 kwietnia 2010, 22:24
Lokalizacja: Warszawa

Post autor: adasiek_j »

A to kolega może czytał/próbował ? => http://wiki2.dovecot.org/WhyDoesItNotWork

Adam
Awatar użytkownika
rmika
Beginner
Posty: 117
Rejestracja: 14 czerwca 2007, 08:55

Post autor: rmika »

Tylko, że kolega nie ma problemu z:

Kod: Zaznacz cały

 
Authentication failed

tylko z

Kod: Zaznacz cały

autodetection failed
Awatar użytkownika
shyte
Beginner
Posty: 165
Rejestracja: 04 grudnia 2009, 00:06

Post autor: shyte »

Zainstalowałem sobie:

Kod: Zaznacz cały

ISP Config 3 +  Postfix, Courier, Saslauthd, MySQL, phpMyAdmin, rkhunter, binutils, Amavisd-new, SpamAssassin oraz Clamav,Apache2, PHP5, phpMyAdmin, FCGI, suExec, Pear, oraz mcrypt, MyDNS, roundcubemai.
Wszystko działa oprócz poczty, tzn. wysyłanie z serwera na skrzynkę np. gmail.com, wiadomość dochodzi, ale wysyłanie ze skrzynki gmail.com na adres mailowy założony na serwerze już nie dochodzi, zwraca e-mail zwrotny.

Kod: Zaznacz cały

This is the mail system at host oczko21.com.

I'm sorry to have to inform you that your message could not
be delivered to one or more recipients. It's attached below.

For further assistance, please send mail to postmaster.

If you do so, please include this problem report. You can
delete your own text from the attached returned message.

                  The mail system

<admin@oczko21.com>: unknown user: "admin"

Final-Recipient: rfc822; admin@oczko21.com
Original-Recipient: rfc822;admin@oczko21.com
Action: failed
Status: 5.1.1
Diagnostic-Code: X-Postfix; unknown user: "admin"



Date: Sat, 23 Apr 2011 14:48:15 +0200
Subject: Re: poczta

Kod: Zaznacz cały

cat var/log/mail.info

Kod: Zaznacz cały

Apr 23 14:57:23 Debian-50-lenny-32-minimal postfix/qmgr[28435]: C708C34A2A3: removed
Apr 23 14:57:23 Debian-50-lenny-32-minimal postfix/local[30658]: 37DE934A2B1: to=<admin@oczko21.com>, relay=local, delay=0.03, delays=0.01/0.01/0/0.02, dsn=5.1.1, status=bounced (unknown user: "admin")
Apr 23 14:57:23 Debian-50-lenny-32-minimal postfix/cleanup[30652]: 3F71934A2A3: message-id=<20110423125723.3F71934A2A3@oczko21.com>
Apr 23 14:57:23 Debian-50-lenny-32-minimal postfix/qmgr[28435]: 3F71934A2A3: from=<>, size=3997, nrcpt=1 (queue active)
Apr 23 14:57:23 Debian-50-lenny-32-minimal postfix/bounce[30659]: 37DE934A2B1: sender non-delivery notification: 3F71934A2A3
Apr 23 14:57:23 Debian-50-lenny-32-minimal postfix/qmgr[28435]: 37DE934A2B1: removed
Apr 23 14:57:24 Debian-50-lenny-32-minimal postfix/smtp[30660]: 3F71934A2A3: to=<>, relay=gmail-smtp-in.l.google.com[74.125.39.27]:25, delay=1.4, delays=0.01/0.01/0.04/1.4, dsn=2.0.0, status=sent (250 2.0.0 OK 1303563444 a20si4588582fak.201)
Apr 23 14:57:24 Debian-50-lenny-32-minimal postfix/qmgr[28435]: 3F71934A2A3: removed
Apr 23 14:57:53 Debian-50-lenny-32-minimal postfix/smtpd[30648]: disconnect from mail-gy0-f177.google.com[209.85.160.177]
Debian-50-lenny-32-minimal:~#
ODPOWIEDZ