Nie jesteś zalogowany.
Jeśli nie posiadasz konta, zarejestruj je już teraz! Pozwoli Ci ono w pełni korzystać z naszego serwisu. Spamerom dziękujemy!
Prosimy o pomoc dla małej Julki — przekaż 1% podatku na Fundacji Dzieciom zdazyć z Pomocą.
Więcej informacji na dug.net.pl/pomagamy/.
Strony: 1
Przy próbie wysłania wiadomości do samego siebie otrzymuję następujący błąd:
An error occurred while sending mail. The mail server responded: 4.3.0 <user@example.com>: Temporary lookup failure. Please check the message recipient "user@example.com" and try again
Próba wysłania maila na moje główne konto pocztowe do odzyskiwania hasła również się nie udaje. Tak samo nie jestem w stanie odebrać wiadomości wysłanych na pocztę user@example.com z mojego głównego konta pocztowego.
/var/log/mail.log:
Nov 27 17:45:02 example postfix/lmtp[15150]: 1B282428F5: to=<user@example.com>, orig_to=<root>, relay=mail.example.com[private/dovecot-lmtp], delay=0.16, delays=0.04/0.02/0.08/0.02, dsn=2.0.0, status=sent (250 2.0.0 <user@example.com> gPCrDA5BHFowOwAA0j1nSg Saved) Nov 27 17:45:02 example dovecot: lmtp(user@example.com): gPCrDA5BHFowOwAA0j1nSg: msgid=<20171127164502.1B282428F5@mail.example.com>: saved mail to INBOX Nov 27 17:45:02 example postfix/qmgr[11494]: 1B282428F5: removed Nov 27 17:45:02 example dovecot: lmtp(15152): Disconnect from local: Successful quit Nov 27 17:45:02 example dovecot: lmtp(user@example.com): wfQWDg5BHFoyOwAA0j1nSg: msgid=<20171127164502.1E955403DE@mail.example.com>: saved mail to INBOX Nov 27 17:45:02 example postfix/lmtp[15153]: 1E955403DE: to=<user@example.com>, orig_to=<root>, relay=mail.example.com[private/dovecot-lmtp], delay=0.18, delays=0.05/0.04/0.06/0.02, dsn=2.0.0, status=sent (250 2.0.0 <user@example.com> wfQWDg5BHFoyOwAA0j1nSg Saved) Nov 27 17:45:02 example dovecot: lmtp(15154): Disconnect from local: Successful quit Nov 27 17:45:02 example postfix/qmgr[11494]: 1E955403DE: removed Nov 27 17:45:51 example postfix/anvil[15060]: statistics: max connection rate 1/60s for (smtp:196.38.89.85) at Nov 27 17:42:30 Nov 27 17:45:51 example postfix/anvil[15060]: statistics: max connection count 1 for (smtp:196.38.89.85) at Nov 27 17:42:30 Nov 27 17:45:51 example postfix/anvil[15060]: statistics: max cache size 1 at Nov 27 17:42:30 Nov 27 17:47:23 example postfix/proxymap[15191]: error: open /etc/postfix/pgsql-boxes.cf: Permission denied Nov 27 17:47:23 example postfix/proxymap[15191]: error: open /etc/postfix/pgsql-aliases.cf: Permission denied Nov 27 17:47:24 example postfix/smtpd[15190]: warning: hostname 123.188.142.83.hornet.pl does not resolve to address 83.142.188.123: Name or service not known Nov 27 17:47:24 example postfix/smtpd[15190]: connect from unknown[83.142.188.123] Nov 27 17:47:24 example postfix/proxymap[15191]: warning: pgsql:/etc/postfix/pgsql-boxes.cf is unavailable. open /etc/postfix/pgsql-boxes.cf: Permission denied Nov 27 17:47:24 example postfix/smtpd[15190]: warning: proxy:pgsql:/etc/postfix/pgsql-boxes.cf lookup error for "user@example.com" Nov 27 17:47:24 example postfix/smtpd[15190]: NOQUEUE: reject: RCPT from unknown[83.142.188.123]: 451 4.3.0 <user@example.com>: Temporary lookup failure; from=<user@example.com> to=<user@example.com> proto=ESMTP helo=<[192.168.1.100]> Nov 27 17:49:05 example postfix/smtpd[15190]: lost connection after RCPT from unknown[83.142.188.123] Nov 27 17:49:05 example postfix/smtpd[15190]: disconnect from unknown[83.142.188.123] ehlo=2 starttls=1 auth=1 mail=1 rcpt=0/1 commands=5/6 Nov 27 17:50:01 example postfix/pickup[14841]: 2D414403E2: uid=0 from=<root> Nov 27 17:50:01 example postfix/cleanup[15273]: 2D414403E2: message-id=<20171127165001.2D414403E2@mail.example.com> Nov 27 17:50:01 example postfix/qmgr[11494]: 2D414403E2: from=<root@example.com>, size=630, nrcpt=1 (queue active) Nov 27 17:50:01 example dovecot: lmtp(15277): Connect from local Nov 27 17:50:01 example dovecot: lmtp(user@example.com): pOHwDjlCHFqtOwAA0j1nSg: msgid=<20171127165001.2D414403E2@mail.example.com>: saved mail to INBOX Nov 27 17:50:01 example postfix/lmtp[15276]: 2D414403E2: to=<user@example.com>, orig_to=<root>, relay=mail.example.com[private/dovecot-lmtp], delay=0.11, delays=0.02/0.02/0.04/0.02, dsn=2.0.0, status=sent (250 2.0.0 <user@example.com> pOHwDjlCHFqtOwAA0j1nSg Saved) Nov 27 17:50:01 example dovecot: lmtp(15277): Disconnect from local: Successful quit Nov 27 17:50:01 example postfix/qmgr[11494]: 2D414403E2: removed root@example:~# tail -f /var/log/mail.log Nov 27 17:53:37 example postfix/smtpd[15332]: disconnect from unknown[221.121.148.77] commands=0/0 Nov 27 17:53:56 example postfix/smtpd[15323]: warning: hostname 123.188.142.83.hornet.pl does not resolve to address 83.142.188.123: Name or service not known Nov 27 17:53:56 example postfix/smtpd[15323]: connect from unknown[83.142.188.123] Nov 27 17:53:56 example postfix/smtpd[15323]: C0D8D403DA: client=unknown[83.142.188.123], sasl_method=PLAIN, sasl_username=user@example.com Nov 27 17:53:56 example postfix/cleanup[15345]: C0D8D403DA: message-id=<65f32aec-0fe3-67fb-5ff9-0a92a84e0f84@example.com> Nov 27 17:53:56 example postfix/qmgr[11494]: C0D8D403DA: from=<user@example.com>, size=615, nrcpt=1 (queue active) Nov 27 17:53:56 example postfix/smtpd[15323]: disconnect from unknown[83.142.188.123] ehlo=2 starttls=1 auth=1 mail=1 rcpt=1 data=1 quit=1 commands=8 Nov 27 17:53:57 example dovecot: imap(user@example.com): Connection closed (IDLE running for 0.001 + waiting input for 0.002 secs, 2 B in + 10+0 B out, state=wait-input) in=1702 out=3426 Nov 27 17:53:58 example postfix/smtp[15346]: C0D8D403DA: to=<hubot@mail.com>, relay=mx00.mail.com[74.208.5.20]:25, delay=2.2, delays=0.09/0.01/0.63/1.5, dsn=2.0.0, status=sent (250 Requested mail action okay, completed: id=0MHHV7-1eOdaX0SJf-00E5gp) Nov 27 17:53:58 example postfix/qmgr[11494]: C0D8D403DA: removed Nov 27 17:54:05 example dovecot: imap-login: Login: user=<user@example.com>, method=PLAIN, rip=83.142.188.123, lip=moj-ip, mpid=15350, TLS, session=<slUSwPleoKdTjrx7> Nov 27 17:54:05 example dovecot: imap(user@example.com): Warning: autocreate plugin is deprecated, use mailbox { auto } setting instead Nov 27 17:55:01 example postfix/pickup[14841]: 4C616403E2: uid=0 from=<root> Nov 27 17:55:01 example postfix/cleanup[15345]: 4C616403E2: message-id=<20171127165501.4C616403E2@mail.example.com> Nov 27 17:55:01 example postfix/qmgr[11494]: 4C616403E2: from=<root@example.com>, size=630, nrcpt=1 (queue active) Nov 27 17:55:01 example postfix/pickup[14841]: 4E913403DA: uid=0 from=<root> Nov 27 17:55:01 example postfix/cleanup[15345]: 4E913403DA: message-id=<20171127165501.4E913403DA@mail.example.com> Nov 27 17:55:01 example postfix/qmgr[11494]: 4E913403DA: from=<root@example.com>, size=661, nrcpt=1 (queue active) Nov 27 17:55:01 example dovecot: lmtp(15419): Connect from local Nov 27 17:55:01 example dovecot: lmtp(15421): Connect from local Nov 27 17:55:01 example postfix/lmtp[15417]: 4C616403E2: to=<user@example.com>, orig_to=<root>, relay=mail.example.com[private/dovecot-lmtp], delay=0.14, delays=0.02/0.03/0.06/0.03, dsn=2.0.0, status=sent (250 2.0.0 <user@example.com> phodGGVDHFo7PAAA0j1nSg Saved) Nov 27 17:55:01 example dovecot: lmtp(user@example.com): phodGGVDHFo7PAAA0j1nSg: msgid=<20171127165501.4C616403E2@mail.example.com>: saved mail to INBOX Nov 27 17:55:01 example postfix/qmgr[11494]: 4C616403E2: removed Nov 27 17:55:01 example dovecot: lmtp(15419): Disconnect from local: Successful quit Nov 27 17:55:01 example dovecot: lmtp(user@example.com): /QVwGWVDHFo9PAAA0j1nSg: msgid=<20171127165501.4E913403DA@mail.example.com>: saved mail to INBOX Nov 27 17:55:01 example postfix/lmtp[15420]: 4E913403DA: to=<user@example.com>, orig_to=<root>, relay=mail.example.com[private/dovecot-lmtp], delay=0.15, delays=0.02/0.05/0.05/0.03, dsn=2.0.0, status=sent (250 2.0.0 <user@example.com> /QVwGWVDHFo9PAAA0j1nSg Saved) Nov 27 17:55:01 example dovecot: lmtp(15421): Disconnect from local: Successful quit Nov 27 17:55:01 example postfix/qmgr[11494]: 4E913403DA: removed
Dodam, że używam postfixa i dovecota z postgresql i spamassasinem.
Offline
Kod:
Nov 27 17:47:24 example postfix/proxymap[15191]: warning: pgsql:/etc/postfix/pgsql-boxes.cf is unavailable. open /etc/postfix/pgsql-boxes.cf: Permission denied[/quote]
Co to jest?
I dlaczego się tym nie zająłeś najpierw?
W demokracji każdy naród ma taką władzę, na jaką zasługuje ;)
Si vis pacem para bellum ;) | Pozdrawiam :)
Offline
Mam SELinuxa w trybie permissive. Próbowałem ustawić chmod 755 /etc/postfix i setsebool -P httpd_can_sendmail=1 ale to nic nie dało.
root@example:~# ls -al /etc/postfix total 172 drwxr-xr-x. 5 root root 4096 Nov 27 17:52 . drwxr-xr-x. 136 root root 12288 Nov 27 06:55 .. -rwxr-xr-x. 1 root root 0 Nov 15 20:49 bcc -rw-r--r--. 1 root root 12288 Nov 15 20:49 bcc.db -rw-r--r--. 1 root root 120 Nov 26 20:03 dynamicmaps.cf drwxr-xr-x. 2 root root 4096 Sep 27 06:56 dynamicmaps.cf.d -rw-r--r--. 1 root root 1495 Nov 27 16:21 main.cf -rw-r--r--. 1 root root 1905 Nov 25 14:49 main.cf.orig -rw-r--r--. 1 root root 27130 Nov 15 20:42 main.cf.proto -rw-r--r--. 1 root root 4416 Sep 27 06:56 makedefs.out -rw-r--r--. 1 root root 6631 Nov 27 00:35 master.cf -rw-r--r--. 1 root root 6068 Nov 15 20:42 master.cf.proto -rw-------. 1 root root 110 Nov 26 20:18 pgsql-aliases.cf -rwxr-xr-x. 1 root root 109 Nov 26 20:19 pgsql-boxes.cf -rw-r--r--. 1 root root 10170 Sep 27 06:56 postfix-files drwxr-xr-x. 2 root root 4096 Nov 26 20:03 postfix-files.d -rwxr-xr-x. 1 root root 9502 Sep 27 06:56 postfix-script -rwxr-xr-x. 1 root root 29446 Sep 27 06:56 post-install drwxr-xr-x. 2 root root 4096 Nov 15 20:48 sasl -rwxr-xr-x. 1 root root 0 Nov 15 20:49 virtual -rw-r--r--. 1 root root 12288 Nov 15 20:49 virtual.db root@example:~# ls -aZ /etc/postfix system_u:object_r:postfix_etc_t:s0 . system_u:object_r:etc_t:s0 .. staff_u:object_r:postfix_etc_t:s0 bcc staff_u:object_r:postfix_etc_t:s0 bcc.db staff_u:object_r:postfix_etc_t:s0 dynamicmaps.cf system_u:object_r:postfix_etc_t:s0 dynamicmaps.cf.d system_u:object_r:postfix_etc_t:s0 main.cf staff_u:object_r:postfix_etc_t:s0 main.cf.orig staff_u:object_r:postfix_etc_t:s0 main.cf.proto system_u:object_r:postfix_etc_t:s0 makedefs.out staff_u:object_r:postfix_etc_t:s0 master.cf staff_u:object_r:postfix_etc_t:s0 master.cf.proto staff_u:object_r:postfix_etc_t:s0 pgsql-aliases.cf staff_u:object_r:postfix_etc_t:s0 pgsql-boxes.cf system_u:object_r:postfix_etc_t:s0 postfix-files system_u:object_r:postfix_etc_t:s0 postfix-files.d system_u:object_r:postfix_exec_t:s0 postfix-script system_u:object_r:postfix_etc_t:s0 post-install system_u:object_r:postfix_etc_t:s0 sasl staff_u:object_r:postfix_etc_t:s0 virtual staff_u:object_r:postfix_etc_t:s0 virtual.db
Offline
Ledwo czaisz konfigurację Linuxa, a od razu się pakujesz w SELINUXa?
Kandydujesz do nagrody Dawina, czy co?
SELinuxa możesz włączyć dopiero wtedy, jak wszystko inne będzie działało prawidłowo.
I tak Ci wtedy gimnastyki nie zabraknie...
setsebool -P httpd_can_sendmail=1
Czyli z poziomu php na Apachu te maile nie wychodzą?
Ostatnio edytowany przez Jacekalex (2017-11-27 19:06:53)
Offline
Strony: 1
Time (s) | Query |
---|---|
0.00012 | SET CHARSET latin2 |
0.00006 | SET NAMES latin2 |
0.00102 | SELECT u.*, g.*, o.logged FROM punbb_users AS u INNER JOIN punbb_groups AS g ON u.group_id=g.g_id LEFT JOIN punbb_online AS o ON o.ident='18.117.166.193' WHERE u.id=1 |
0.00066 | REPLACE INTO punbb_online (user_id, ident, logged) VALUES(1, '18.117.166.193', 1732388524) |
0.00061 | SELECT * FROM punbb_online WHERE logged<1732388224 |
0.00122 | DELETE FROM punbb_online WHERE ident='18.222.113.135' |
0.00114 | SELECT topic_id FROM punbb_posts WHERE id=315763 |
0.00011 | SELECT id FROM punbb_posts WHERE topic_id=30086 ORDER BY posted |
0.00089 | SELECT t.subject, t.closed, t.num_replies, t.sticky, f.id AS forum_id, f.forum_name, f.moderators, fp.post_replies, 0 FROM punbb_topics AS t INNER JOIN punbb_forums AS f ON f.id=t.forum_id LEFT JOIN punbb_forum_perms AS fp ON (fp.forum_id=f.id AND fp.group_id=3) WHERE (fp.read_forum IS NULL OR fp.read_forum=1) AND t.id=30086 AND t.moved_to IS NULL |
0.00009 | SELECT search_for, replace_with FROM punbb_censoring |
0.00126 | SELECT u.email, u.title, u.url, u.location, u.use_avatar, u.signature, u.email_setting, u.num_posts, u.registered, u.admin_note, p.id, p.poster AS username, p.poster_id, p.poster_ip, p.poster_email, p.message, p.hide_smilies, p.posted, p.edited, p.edited_by, g.g_id, g.g_user_title, o.user_id AS is_online FROM punbb_posts AS p INNER JOIN punbb_users AS u ON u.id=p.poster_id INNER JOIN punbb_groups AS g ON g.g_id=u.group_id LEFT JOIN punbb_online AS o ON (o.user_id=u.id AND o.user_id!=1 AND o.idle=0) WHERE p.topic_id=30086 ORDER BY p.id LIMIT 0,25 |
0.00077 | UPDATE punbb_topics SET num_views=num_views+1 WHERE id=30086 |
Total query time: 0.00795 s |