Skocz do zawartości

m4r1usz

Użytkownicy
  • Zawartość

    10
  • Rejestracja

  • Ostatnio

Wszystko napisane przez m4r1usz

  1. SMTP problem

    Witam. Mam problem z wysyłaniem maili z użyciem jakichkolwiek programów pocztowych. Wysyłanie i odbierając maile z użyciem squirrelMail czy Roundcube wszystko działa bez problemu, ale po konfiguracji konta na outlock czy t hunderbird działa tylko pop3 a smtp już nie. Logi Aug 10 23:05:22 server1 postfix/postfix-script[2279]: warning: not owned by root: /etc/postfix/mysql_virtual_mailbox_limit_maps.cf Aug 10 23:05:22 server1 postfix/postfix-script[2280]: warning: not owned by root: /etc/postfix/mysql_virtual_mailbox_maps.cf Aug 10 23:05:22 server1 postfix/postfix-script[2281]: warning: not owned by root: /etc/postfix/mysql_virtual_transport_maps.cf Aug 10 23:05:22 server1 postfix/postfix-script[2282]: warning: not owned by root: /etc/postfix/post-install Aug 10 23:05:22 server1 postfix/postfix-script[2283]: warning: not owned by root: /etc/postfix/postfix-files Aug 10 23:05:22 server1 postfix/postfix-script[2284]: warning: not owned by root: /etc/postfix/postfix-script Aug 10 23:05:22 server1 postfix/postfix-script[2285]: warning: not owned by root: /etc/postfix/sasl Aug 10 23:05:22 server1 postfix/postfix-script[2286]: warning: not owned by root: /etc/postfix/virtual Aug 10 23:05:22 server1 postfix/postfix-script[2287]: warning: not owned by root: /etc/postfix/virtual.db Aug 10 23:05:22 server1 postfix/postfix-script[2289]: warning: group or other writable: /etc/postfix/./mysql_relay_domains_maps.cf Aug 10 23:05:22 server1 postfix/postfix-script[2290]: warning: group or other writable: /etc/postfix/./mysql_virtual_mailbox_maps.cf Aug 10 23:05:22 server1 postfix/postfix-script[2291]: warning: group or other writable: /etc/postfix/./mysql_virtual_mailbox_limit_maps.cf Aug 10 23:05:22 server1 postfix/postfix-script[2292]: warning: group or other writable: /etc/postfix/./mysql_virtual_transport_maps.cf Aug 10 23:05:22 server1 postfix/postfix-script[2293]: warning: group or other writable: /etc/postfix/./mysql_virtual_alias_maps.cf Aug 10 23:05:22 server1 postfix/postfix-script[2294]: warning: group or other writable: /etc/postfix/./mysql_virtual_domains_maps.cf Aug 10 23:05:22 server1 postfix/postqueue[2330]: warning: Mail system is down -- accessing queue directly Aug 10 23:06:10 server1 dovecot: auth: shadow(poczta@liner.pl,78.9.3.181): unknown user Aug 10 23:06:10 server1 dovecot: auth: passwd(poczta@liner.pl,78.9.3.181): unknown user Aug 10 23:06:10 server1 dovecot: pop3-login: Login: user=<poczta@liner.pl>, method=PLAIN, rip=78.9.3.181, lip=213.133.103.134, mpid=2359 Aug 10 23:06:10 server1 dovecot: pop3(poczta@liner.pl): Disconnected: Logged out top=0/0, retr=0/0, del=0/0, size=0
  2. SMTP problem

    Ten problem już mam rozwiązany, lecz dalej nie działa jak powinno. Aug 17 13:51:55 server1 postfix/scache[31112]: statistics: start interval Aug 17 13:48:35 Aug 17 13:51:55 server1 postfix/scache[31112]: statistics: domain lookup hits=0 miss=1 success=0% Aug 17 13:51:55 server1 postfix/scache[31112]: statistics: address lookup hits=0 miss=2 success=0% Aug 17 13:51:55 server1 postfix/scache[31112]: statistics: max simultaneous domains=1 addresses=2 connection=2 Aug 17 13:53:05 server1 dovecot: auth: shadow(poczta@liner.pl,78.9.2.231): unknown user Aug 17 13:53:05 server1 dovecot: auth: passwd(poczta@liner.pl,78.9.2.231): unknown user Aug 17 13:53:05 server1 dovecot: pop3-login: Login: user=<poczta@liner.pl>, method=PLAIN, rip=78.9.2.231, lip=213.133.103.134, mpid=31212 Aug 17 13:53:05 server1 dovecot: pop3(poczta@liner.pl): Error: user poczta@liner.pl: Initialization failed: Initializing mail storage from mail_location setting failed: mkdir(/home/vmail/liner.pl/poczta/Maildir) failed: Permission denied (euid=5012(liner) egid=8(mail) missing +w perm: /home, euid is not dir owner) Aug 17 13:53:05 server1 dovecot: pop3(poczta@liner.pl): Error: Invalid user settings. Refer to server log for more information. Nie rozumiem tego wpisu. Ja mam ścieżkę do maili /home/user/Maildir Initialization failed: Initializing mail storage from mail_location setting failed: mkdir(/home/vmail/liner.pl/poczta/Maildir)
  3. SMTP problem

    Bazę danych mam utworzoną i przez phpmy admina się łącze. w /tmp też jest ok server1:/tmp# ls mysql.sock sess_1c37108fd7e12b31a238592fd5437124d042ac0c Mysql na serwerze działa server1:/var/run/mysqld# ls -l razem 4,0K -rw-rw---- 1 mysql mysql 6 sie 10 21:08 mysqld.pid srwxrwxrwx 1 mysql mysql 0 sie 10 21:08 mysqld.sock server1:/var/run/mysqld#
  4. SMTP problem

    Uzupełniłem dane do bazy danych, jednak smtp dalej nie działa. Aug 16 17:13:15 server1 postfix/master[20743]: warning: /usr/lib/postfix/smtpd: bad command startup -- throttling Aug 16 17:13:21 server1 postfix/trivial-rewrite[1306]: warning: connect to mysql server localhost: Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2) Aug 16 17:13:21 server1 postfix/trivial-rewrite[1306]: fatal: mysql:/etc/postfix/mysql_virtual_alias_maps.cf(0,lock|fold_fix): table lookup problem Aug 16 17:13:22 server1 postfix/qmgr[1002]: warning: problem talking to service rewrite: Success Aug 16 17:13:22 server1 postfix/cleanup[610]: warning: problem talking to service rewrite: Connection reset by peer Aug 16 17:13:22 server1 postfix/master[20743]: warning: process /usr/lib/postfix/trivial-rewrite pid 1306 exit status 1 Aug 16 17:13:22 server1 postfix/master[20743]: warning: /usr/lib/postfix/trivial-rewrite: bad command startup -- throttling Aug 16 17:14:11 server1 dovecot: auth: shadow(poczta@liner.pl,78.8.102.82): unknown user Aug 16 17:14:11 server1 dovecot: auth: passwd(poczta@liner.pl,78.8.102.82): unknown user Aug 16 17:14:11 server1 dovecot: pop3-login: Login: user=<poczta@liner.pl>, method=PLAIN, rip=78.8.102.82, lip=213.133.103.134, mpid=1316 Aug 16 17:14:12 server1 dovecot: pop3(poczta@liner.pl): Disconnected: Logged out top=0/0, retr=0/0, del=0/0, size=0 Aug 16 17:14:15 server1 postfix/smtpd[1317]: fatal: bad string length 0 < 1: smtpd_banner = Aug 16 17:14:16 server1 postfix/master[20743]: warning: process /usr/lib/postfix/smtpd pid 1317 exit status 1 Aug 16 17:14:16 server1 postfix/master[20743]: warning: /usr/lib/postfix/smtpd: bad command startup -- throttling Aug 16 17:14:22 server1 postfix/trivial-rewrite[1318]: warning: connect to mysql server localhost: Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2) Aug 16 17:14:22 server1 postfix/trivial-rewrite[1318]: fatal: mysql:/etc/postfix/mysql_virtual_alias_maps.cf(0,lock|fold_fix): table lookup problem Aug 16 17:14:23 server1 postfix/qmgr[1002]: warning: problem talking to service rewrite: Interrupted system call Aug 16 17:14:23 server1 postfix/cleanup[610]: warning: problem talking to service rewrite: Connection reset by peer Aug 16 17:14:23 server1 postfix/master[20743]: warning: process /usr/lib/postfix/trivial-rewrite pid 1318 exit status 1 Aug 16 17:14:23 server1 postfix/master[20743]: warning: /usr/lib/postfix/trivial-rewrite: bad command startup -- throttling
  5. SMTP problem

    Zainstalowane Aug 12 00:17:56 server1 postfix/cleanup[22011]: B5A8118870B: message-id=<67b72da544f3deec1aca40af8e09e2a9@domnocy.pl> Aug 12 00:17:56 server1 postfix/cleanup[22011]: warning: B5A8118870B: virtual_alias_maps map lookup problem for dominika@gg.pl Aug 12 00:17:57 server1 postfix/trivial-rewrite[22048]: warning: connect to mysql server localhost: Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2) Aug 12 00:17:57 server1 postfix/trivial-rewrite[22048]: fatal: mysql:/etc/postfix/mysql_virtual_alias_maps.cf(0,lock|fold_fix): table lookup problem Aug 12 00:17:57 server1 postfix/pickup[21269]: BEC7118870B: uid=5004 from=<domnocy@domnocy.pl> Aug 12 00:17:57 server1 postfix/cleanup[22012]: BEC7118870B: message-id=<89cbb6be62fd8c3bef0dfe53f21732ea@domnocy.pl> Aug 12 00:17:57 server1 postfix/cleanup[22012]: warning: BEC7118870B: virtual_alias_maps map lookup problem for angie911@buziaczek.pl Aug 12 00:17:58 server1 postfix/qmgr[22010]: warning: problem talking to service rewrite: Success Aug 12 00:17:58 server1 postfix/master[20743]: warning: process /usr/lib/postfix/trivial-rewrite pid 22048 exit status 1 Aug 12 00:17:58 server1 postfix/pickup[21269]: C534D18870B: uid=5004 from=<domnocy@domnocy.pl> Aug 12 00:17:58 server1 postfix/cleanup[22011]: C534D18870B: message-id=<3e6c7b563f6027a0ef8165b27a7690a8@domnocy.pl> Aug 12 00:17:58 server1 postfix/cleanup[22011]: warning: C534D18870B: virtual_alias_maps map lookup problem for metka013@o2.pl Aug 12 00:17:59 server1 postfix/trivial-rewrite[22052]: warning: connect to mysql server localhost: Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2) Aug 12 00:17:59 server1 postfix/trivial-rewrite[22052]: fatal: mysql:/etc/postfix/mysql_virtual_alias_maps.cf(0,lock|fold_fix): table lookup problem Aug 12 00:17:59 server1 postfix/pickup[21269]: C5FCB18870B: uid=5004 from=<domnocy@domnocy.pl> Aug 12 00:18:00 server1 postfix/cleanup[22012]: warning: problem talking to service rewrite: Connection reset by peer Aug 12 00:18:00 server1 postfix/qmgr[22010]: warning: problem talking to service rewrite: Success Aug 12 00:18:00 server1 postfix/master[20743]: warning: process /usr/lib/postfix/trivial-rewrite pid 22052 exit status 1 Aug 12 00:18:01 server1 postfix/trivial-rewrite[22060]: warning: connect to mysql server localhost: Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2) Aug 12 00:18:01 server1 postfix/trivial-rewrite[22060]: fatal: mysql:/etc/postfix/mysql_virtual_alias_maps.cf(0,lock|fold_fix): table lookup problem
  6. SMTP problem

    Ok na serwerze nasłuchuje postfix, ale smtp dalej nie trybi. Logi Aug 11 23:53:14 server1 postfix/master[20743]: warning: process /usr/lib/postfix/qmgr pid 20884 exit status 1 Aug 11 23:53:14 server1 postfix/master[20743]: warning: /usr/lib/postfix/qmgr: bad command startup -- throttling Aug 11 23:54:14 server1 postfix/cleanup[20929]: fatal: dict_open: unsupported dictionary type: mysql (/usr/lib/postfix/dict_mysql.so not found. Is the postfix-mysql package installed?) Aug 11 23:54:14 server1 postfix/qmgr[20930]: fatal: dict_open: unsupported dictionary type: mysql (/usr/lib/postfix/dict_mysql.so not found. Is the postfix-mysql package installed?) Aug 11 23:54:15 server1 postfix/master[20743]: warning: process /usr/lib/postfix/cleanup pid 20929 exit status 1 Aug 11 23:54:15 server1 postfix/master[20743]: warning: /usr/lib/postfix/cleanup: bad command startup -- throttling Aug 11 23:54:15 server1 postfix/master[20743]: warning: process /usr/lib/postfix/qmgr pid 20930 exit status 1 Aug 11 23:54:15 server1 postfix/master[20743]: warning: /usr/lib/postfix/qmgr: bad command startup -- throttling Aug 11 23:55:15 server1 postfix/qmgr[21056]: fatal: dict_open: unsupported dictionary type: mysql (/usr/lib/postfix/dict_mysql.so not found. Is the postfix-mysql package installed?) Aug 11 23:55:15 server1 postfix/cleanup[21055]: fatal: dict_open: unsupported dictionary type: mysql (/usr/lib/postfix/dict_mysql.so not found. Is the postfix-mysql package installed?) Aug 11 23:55:16 server1 postfix/master[20743]: warning: process /usr/lib/postfix/qmgr pid 21056 exit status 1 Aug 11 23:55:16 server1 postfix/master[20743]: warning: /usr/lib/postfix/qmgr: bad command startup -- throttling Aug 11 23:55:16 server1 postfix/master[20743]: warning: process /usr/lib/postfix/cleanup pid 21055 exit status 1 Aug 11 23:55:16 server1 postfix/master[20743]: warning: /usr/lib/postfix/cleanup: bad command startup -- throttling Aug 11 23:56:16 server1 postfix/cleanup[21071]: fatal: dict_open: unsupported dictionary type: mysql (/usr/lib/postfix/dict_mysql.so not found. Is the postfix-mysql package installed?) Aug 11 23:56:16 server1 postfix/qmgr[21070]: fatal: dict_open: unsupported dictionary type: mysql (/usr/lib/postfix/dict_mysql.so not found. Is the postfix-mysql package installed?) Aug 11 23:56:17 server1 postfix/master[20743]: warning: process /usr/lib/postfix/cleanup pid 21071 exit status 1 Aug 11 23:56:17 server1 postfix/master[20743]: warning: /usr/lib/postfix/cleanup: bad command startup -- throttling Aug 11 23:56:17 server1 postfix/master[20743]: warning: process /usr/lib/postfix/qmgr pid 21070 exit status 1 Aug 11 23:56:17 server1 postfix/master[20743]: warning: /usr/lib/postfix/qmgr: bad command startup -- throttling
  7. SMTP problem

    Dziwiło już jak wklejałem wynik:) Zaraz odinstaluje exima i wkleję ewentualne logi, ale pewnie to jest rozwiązanie problemu.
  8. SMTP problem

    server1:~# netstat -ntpl | grep -e :25 -e :587 tcp 0 0 0.0.0.0:587 0.0.0.0:* LISTEN 2905/exim tcp 0 0 0.0.0.0:25 0.0.0.0:* LISTEN 2905/exim tcp6 0 0 :::587 :::* LISTEN 2905/exim tcp6 0 0 :::25 :::* LISTEN 2905/exim
  9. SMTP problem

    Przy porcie 25 program zwracał komunikat Wyślij testową wiadomość e-mail: Program Outlook nie może połączyć się z serwerem poczty wychodzącej (SMTP). Jeśli komunikat ten będzie nadal wyświetlany, skontaktuj się z administratorem serwera lub usługodawcą internetowym (ISP). Przy porcie 587 zwraca Wyślij testową wiadomość e-mail: Wystąpił nieznany błąd, kod błędu: 0x80040607 main.cf # See /usr/share/postfix/main.cf.dist for a commented, more complete v # 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 biff = no hosts = 127.0.0.1 # 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=no smtpd_tls_session_cache_database = btree:${data_directory}/smtpd_scache smtp_tls_session_cache_database = btree:${data_directory}/smtp_scache smtpd_sasl_auth_enable = yes smtpd_sasl2_auth_enable = yes smtpd_sasl_security_options = noanonymous smtpd_sasl_local_domain = broken_sasl_auth_clients = yes smtpd_sasl_authenticated_header = yes smtpd_recipient_restrictions = permit_sasl_authenticated, reject_unauth_destination, permit_mynetworks smtpd_client_restrictions = permit_mynetworks, permit_sasl_authenticated, reject_unknown_client #smtpd_sasl_auth_enable = yes #broken_sasl_auth_clients = yes #smtpd_sasl_security_options = noanonymous #smtpd_recipient_restrictions = permit_mynetworks, permit_sasl_authenticated, reject_unauth_destination # See /usr/share/doc/postfix/TLS_README.gz in the postfix-doc package for # information on enabling SSL in the smtp client. myhostname = localhost alias_maps = hash:/etc/aliases alias_database = hash:/etc/aliases myorigin = /etc/mailname mydestination = webplace, localhost.localdomain, localhost relayhost = mynetworks = 127.0.0.0/8 [::ffff:127.0.0.0]/104 [::1]/128 mailbox_size_limit = 0 recipient_delimiter = + inet_interfaces = all local_recipient_maps = unix:passwd.byname $alias_maps relay_domains = mysql:/etc/postfix/mysql_relay_domains_maps.cf virtual_alias_maps = mysql:/etc/postfix/mysql_virtual_alias_maps.cf virtual_uid_maps = static:8 virtual_gid_maps = static:8 virtual_mailbox_base = /var/mail/vmail virtual_mailbox_domains = mysql:/etc/postfix/mysql_virtual_domains_maps.cf virtual_mailbox_limit = 51200000 virtual_mailbox_maps = mysql:/etc/postfix/mysql_virtual_mailbox_maps.cf virtual_minimum_uid = 8 #virtual_transport = sasl2 mailbox_transport = virtual maildrop_destination_recipient_limit = 1 # Transport map transport_maps = mysql:/etc/postfix/mysql_virtual_transport_maps.cf vacation_destination_recipient_limit = 1 # Additional for quota support virtual_create_maildirsize = yes virtual_mailbox_extended = yes virtual_mailbox_limit_maps = mysql:/etc/postfix/mysql_virtual_mailbox_limit_maps.cf virtual_mailbox_limit_override = yes virtual_maildir_limit_message = Przepraszamy, wyczerpales swoj limit miejsca na dysku. #smtpd_sasl_auth_enable = yes #smtpd_sasl_security_options = noanonymous #broken_sasl_auth_clients = yes #smtpd_sasl_local_domain = webplace.com.pl #smtpd_sasl_auth_enable = yes #smtpd_sasl_security_options = noanonymous #broken_sasl_auth_clients = yes #smtpd_sasl_path = smptd #smtpd_sasl_authenticated_header = yes #smtpd_recipient_restrictions = permit_mynetworks,permit_sasl_authenticated,reject_non_fqdn_hostname,reject_non_fqdn_sender,reject_non_fqdn_recipient,reject_unauth_destination,reject_unauth_pipelining,reject_invalid_hostname,reject_rbl_client opm.blitzed.org,reject_rbl_client list.dsbl.org,reject_rbl_client bl.spamcop.net,reject_rbl_client sbl-xbl.spamhaus.org smtpd_banner = mail.er Aug 10 22:55:23 server1 postfix/master[941]: fatal: bind 0.0.0.0 port 25: Address already in use
  10. SMTP problem

    Nadałem plikom odpowiednie uprawnienia, ale SMTP nadal niedziała. Aug 11 11:12:48 server1 dovecot: auth: shadow(poczta@liner.pl,78.9.2.62): unknown user Aug 11 11:12:48 server1 dovecot: auth: passwd(poczta@liner.pl,78.9.2.62): unknown user Aug 11 11:12:48 server1 dovecot: pop3-login: Login: user=<poczta@liner.pl>, method=PLAIN, rip=78.9.2.62, lip=213.133.103.134, mpid=11253 Aug 11 11:12:48 server1 dovecot: pop3(poczta@liner.pl): Disconnected: Logged out top=0/0, retr=0/0, del=0/0, size=0 Aug 11 11:13:15 server1 dovecot: auth: shadow(poczta@liner.pl,78.9.2.62): unknown user Aug 11 11:13:15 server1 dovecot: auth: passwd(poczta@liner.pl,78.9.2.62): unknown user Aug 11 11:13:15 server1 dovecot: pop3-login: Login: user=<poczta@liner.pl>, method=PLAIN, rip=78.9.2.62, lip=213.133.103.134, mpid=11258 Aug 11 11:13:15 server1 dovecot: pop3(poczta@liner.pl): Disconnected: Logged out top=0/0, retr=0/0, del=0/0, size=0 Aug 11 11:16:04 server1 dovecot: auth: shadow(poczta@liner.pl,78.9.2.62): unknown user Aug 11 11:16:04 server1 dovecot: auth: passwd(poczta@liner.pl,78.9.2.62): unknown user Aug 11 11:16:04 server1 dovecot: pop3-login: Login: user=<poczta@liner.pl>, method=PLAIN, rip=78.9.2.62, lip=213.133.103.134, mpid=11344 Aug 11 11:16:04 server1 dovecot: pop3(poczta@liner.pl): Disconnected: Logged out top=0/0, retr=0/0, del=0/0, size=0 Aug 11 11:21:20 server1 dovecot: auth: shadow(poczta@liner.pl,78.9.2.62): unknown user Aug 11 11:21:20 server1 dovecot: auth: passwd(poczta@liner.pl,78.9.2.62): unknown user Aug 11 11:21:20 server1 dovecot: pop3-login: Login: user=<poczta@liner.pl>, method=PLAIN, rip=78.9.2.62, lip=213.133.103.134, mpid=11426 Aug 11 11:21:20 server1 dovecot: pop3(poczta@liner.pl): Disconnected: Logged out top=0/0, retr=0/0, del=0/0, size=0 Aug 11 11:21:51 server1 dovecot: auth: shadow(poczta@liner.pl,78.9.2.62): unknown user Aug 11 11:21:51 server1 dovecot: auth: passwd(poczta@liner.pl,78.9.2.62): unknown user Aug 11 11:21:51 server1 dovecot: pop3-login: Login: user=<poczta@liner.pl>, method=PLAIN, rip=78.9.2.62, lip=213.133.103.134, mpid=11433 Aug 11 11:21:51 server1 dovecot: pop3(poczta@liner.pl): Disconnected: Logged out top=0/0, retr=0/0, del=0/0, size=0
×