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/.
Mam problem z połączeniem usług postfiksa, courirera i mysqla. Przy konfiguracji korzystałem z opisu ze strony:
http://www.howtoforge.com/virtual-users-and-domains-with-postfix-courier-mysql-and-squirrelmail-debian-squeeze
Postfix wyświetla mi taki komunikat:
Nov 28 22:14:29 debian postfix/smtp[5874]: 8982C4A6FA: to=<root@subdomena.domena.com.pl>, relay=none, delay=0, delays=0/0/0/0, dsn=5.4.6, status=bounced (mail for xxx.xxx.xxx.xxx loops back to myself) Nov 28 22:14:29 debian postfix/qmgr[5505]: 8982C4A6FA: removed
Wartości w tabeli transport są następujące:
domain = subdomena.domena.com.pl transport = smtp:[xxx.xxx.xxx.xxx]
serwer:
Debian Squeeze
Linux Debian 2.6.32-5-xen-amd64 #1 SMP Mon Oct 3 07:53:54 UTC 2011 x86_64 GNU/Linux
Architektura 64 bit
Konfiguracja postfixa main.cf:
# 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 #inet_interfaces = 150.254.214.17,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 = /usr/share/doc/postfix # TLS parameters smtpd_tls_cert_file = /etc/postfix/smtpd.cert smtpd_tls_key_file = /etc/postfix/smtpd.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. home_mailbox = Maildir/ myhostname = subdomena.domena.com.pl alias_maps = hash:/etc/aliases alias_database = hash:/etc/aliases myorigin = /etc/mailname #mydestination = $mydomain, $myhostname, localhost, localhost.localdomain, mydestination = subdomena.domena.com.pl relayhost = mynetworks = 127.0.0.0/8 mailbox_size_limit = 0 recipient_delimiter = + inet_interfaces = all html_directory = /usr/share/doc/postfix/html virtual_alias_domains = virtual_alias_maps = proxy:mysql:/etc/postfix/mysql-virtual_forwardings.cf, mysq l:/etc/postfix/mysql-virtual_email2email.cf virtual_mailbox_domains = proxy:mysql:/etc/postfix/mysql-virtual_domains.cf virtual_mailbox_maps = proxy:mysql:/etc/postfix/mysql-virtual_mailboxes.cf virtual_mailbox_base = /home/vmail virtual_uid_maps = static:5000 virtual_gid_maps = static:5000 smtpd_sasl_auth_enable = yes broken_sasl_auth_clients = yes smtpd_sasl_authenticated_header = yes smtpd_recipient_restrictions = permit_mynetworks, permit_sasl_authenticated, reject_unauth_destination transport_maps = proxy:mysql:/etc/postfix/mysql-virtual_transports.cf virtual_create_maildirsize = yes virtual_maildir_extended = yes virtual_mailbox_limit_maps = proxy:mysql:/etc/postfix/mysql-virtual_mailbox_limit_maps.cf virtual_mailbox_limit_override = yes virtual_maildir_limit_message = "The user you are trying to reach is over quota." virtual_overquota_bounce = yes proxy_read_maps = $local_recipient_maps $mydestination $virtual_alias_maps $virtual_alias_domains $virtual_mailbox_maps $virtual_mailbox_domains $relay_recipient_maps $relay_domains $canonical_maps $sender_canonical_maps $recipient_canonical_maps $relocated_maps $transport_maps $mynetworks $virtual_mailbox_limit_maps
Nie mam możliwości dodania wpisu do revDNS.
Offline
A napiszesz w czym problem, czy chcesz interpretacji tego komunikatu? Bo piszesz, że masz problem (jakiś) i wklejasz 2 linijki z logów, które nie wskazują na żaden problem (przynajmniej mi się tak wydaje).
Offline
Problem jest taki że mejle nie przełażą do adresata, poprzez co nie zakłada mu skrzynki. Skończyły mi się pomysły w grzebaniu w main.cf
Offline
Popraw w adresie opisu, na którym się wzorowałeś bo nie działa.
Offline
do tego proponuję przerzucić postfixa na tryb gadatliwy i wkleić więcej logów ;)
Offline
faktycznie coś wcielo oto opis:
http://www.howtoforge.com/virtual-users-and-domains-with-postfix-courier-mysql-and-squirrelmail-debian-squeeze
Offline
mam ten sam problem :
mój post
alias_database = hash:/etc/aliases alias_maps = hash:/etc/aliases append_dot_mydomain = no biff = no broken_sasl_auth_clients = yes config_directory = /etc/postfix content_filter = amavis:[127.0.0.1]:10024 html_directory = /usr/share/doc/postfix/html inet_interfaces = all mailbox_size_limit = 0 message_size_limit = 30720000 mydestination = localhost, localhost.localdomain myhostname = domena.pl mynetworks = 127.0.0.0/8 myorigin = /etc/mailname proxy_read_maps = $local_recipient_maps $mydestination $virtual_alias_maps $virtual_alias_domains $virtual_mailbox_maps $virtual_mailbox_domains $relay_recipient_maps $relay_domains $canonical_maps $sender_canonical_maps $recipient_canonical_maps $relocated_maps $transport_maps $mynetworks $virtual_mailbox_limit_maps readme_directory = /usr/share/doc/postfix receive_override_options = no_address_mappings recipient_delimiter = + relay_domains = $mydestination relayhost = smtp_tls_session_cache_database = btree:${data_directory}/smtp_scache smtpd_banner = $myhostname ESMTP $mail_name (Debian/GNU) smtpd_recipient_restrictions = permit_mynetworks, permit_sasl_authenticated, reject_unauth_destination smtpd_sasl_auth_enable = yes smtpd_sasl_authenticated_header = yes smtpd_tls_cert_file = /etc/postfix/smtpd.cert smtpd_tls_key_file = /etc/postfix/smtpd.key smtpd_tls_session_cache_database = btree:${data_directory}/smtpd_scache smtpd_use_tls = yes transport_maps = proxy:mysql:/etc/postfix/mysql-virtual_transports.cf unknown_address_reject_code = 550 unknown_client_reject_code = 550 unknown_hostname_reject_code = 550 unknown_local_recipient_reject_code = 550 virtual_alias_domains = virtual_alias_maps = proxy:mysql:/etc/postfix/mysql-virtual_forwardings.cf, mysql:/etc/postfix/mysql-virtual_email2email.cf virtual_gid_maps = static:5000 virtual_mailbox_base = /home/vmail/ virtual_mailbox_domains = proxy:mysql:/etc/postfix/mysql-virtual_domains.cf virtual_mailbox_maps = proxy:mysql:/etc/postfix/mysql-virtual_mailboxes.cf virtual_uid_maps = static:5000
w logach :
Nov 6 09:14:26 ns39795 imapd: LOGOUT, user=info@domena.pl, ip=[::ffff:127.0.0.1], headers=0, body=0, rcvd=87, sent=545, time=0 Nov 6 09:20:21 ns39795 pop3d: Connection, ip=[::ffff:193.239.56.21] Nov 6 09:20:21 ns39795 pop3d: Connection, ip=[::ffff:193.239.56.21] Nov 6 09:20:21 ns39795 pop3d: LOGOUT, ip=[::ffff:193.239.56.21] Nov 6 09:20:21 ns39795 pop3d: Disconnected, ip=[::ffff:193.239.56.21] Nov 6 09:20:22 ns39795 pop3d: LOGIN, user=administracja@domena.pl, ip=[::ffff:193.239.56.21], port=[2460] Nov 6 09:20:22 ns39795 pop3d: LOGOUT, user=administracja@domena.pl, ip=[::ffff:193.239.56.21], port=[2460], top=0, retr=0, rcvd=12, sent=39, time=0, stls=1 Nov 6 09:24:27 ns39795 imapd: Connection, ip=[::ffff:127.0.0.1] Nov 6 09:24:27 ns39795 imapd: LOGIN, user=info@domena.pl, ip=[::ffff:127.0.0.1], port=[43286], protocol=IMAP Nov 6 09:24:27 ns39795 imapd: LOGOUT, user=info@domena.pl, ip=[::ffff:127.0.0.1], headers=0, body=0, rcvd=87, sent=545, time=0 Nov 6 09:27:03 ns39795 postfix/smtpd[7268]: connect from anr139.rev.netart.pl[85.128.226.139] Nov 6 09:27:03 ns39795 postfix/smtpd[7268]: CCF8A510005E: client=anr139.rev.netart.pl[85.128.226.139] Nov 6 09:27:03 ns39795 postfix/cleanup[7273]: CCF8A510005E: message-id=<5098C9BE.2020904@nadawca.pl> Nov 6 09:27:04 ns39795 postfix/qmgr[6153]: CCF8A510005E: from=<test@nadawca.pl>, size=10726, nrcpt=1 (queue active) Nov 6 09:27:04 ns39795 postfix/smtpd[7268]: disconnect from anr139.rev.netart.pl[85.128.226.139] Nov 6 09:27:04 ns39795 postfix/smtpd[7276]: connect from localhost.localdomain[127.0.0.1] Nov 6 09:27:04 ns39795 postfix/smtpd[7276]: 10E325100061: client=localhost.localdomain[127.0.0.1] Nov 6 09:27:04 ns39795 postfix/cleanup[7273]: 10E325100061: message-id=<5098C9BE.2020904@nadawca.pl> Nov 6 09:27:04 ns39795 postfix/smtpd[7276]: disconnect from localhost.localdomain[127.0.0.1] Nov 6 09:27:04 ns39795 postfix/qmgr[6153]: 10E325100061: from=<test@nadawca.pl>, size=11116, nrcpt=1 (queue active) Nov 6 09:27:04 ns39795 amavis[20592]: (20592-06) Passed CLEAN, [85.128.226.139] [193.239.56.21] <test@nadawca.pl> -> <info@domena.pl>, Message-ID: <5098C9BE.2020904@nadawca.pl>, mail_id: AQv14gyYLAKa, Hits: -, size: 10726, queued_as: 10E325100061, 103 ms Nov 6 09:27:04 ns39795 postfix/smtp[7274]: CCF8A510005E: to=<info@domena.pl>, relay=127.0.0.1[127.0.0.1]:10024, delay=0.27, delays=0.17/0/0/0.1, dsn=2.0.0, status=sent (250 2.0.0 Ok, id=20592-06, from MTA([127.0.0.1]:10025): 250 2.0.0 Ok: queued as 10E325100061) Nov 6 09:27:04 ns39795 postfix/qmgr[6153]: CCF8A510005E: removed Nov 6 09:27:04 ns39795 postfix/smtp[7277]: 10E325100061: to=<info@domena.pl>, relay=none, delay=0.04, delays=0.04/0/0/0, dsn=5.4.6, status=bounced (mail for 127.0.0.1 loops back to myself) Nov 6 09:27:04 ns39795 postfix/cleanup[7273]: 226DD510005E: message-id=<20121106082704.226DD510005E@domena.pl> Nov 6 09:27:04 ns39795 postfix/bounce[7278]: 10E325100061: sender non-delivery notification: 226DD510005E Nov 6 09:27:04 ns39795 postfix/qmgr[6153]: 226DD510005E: from=<>, size=12973, nrcpt=1 (queue active) Nov 6 09:27:04 ns39795 postfix/qmgr[6153]: 10E325100061: removed
co jest nie tak ?
problem rozwiązany
Ostatnio edytowany przez szewczyk (2012-11-06 11:09:54)
Offline
Time (s) | Query |
---|---|
0.00011 | SET CHARSET latin2 |
0.00004 | SET NAMES latin2 |
0.00097 | 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='3.145.85.74' WHERE u.id=1 |
0.00063 | REPLACE INTO punbb_online (user_id, ident, logged) VALUES(1, '3.145.85.74', 1732493759) |
0.00060 | SELECT * FROM punbb_online WHERE logged<1732493459 |
0.00045 | SELECT topic_id FROM punbb_posts WHERE id=186767 |
0.00073 | SELECT id FROM punbb_posts WHERE topic_id=20143 ORDER BY posted |
0.00058 | 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=20143 AND t.moved_to IS NULL |
0.00005 | SELECT search_for, replace_with FROM punbb_censoring |
0.00084 | 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=20143 ORDER BY p.id LIMIT 0,25 |
0.00086 | UPDATE punbb_topics SET num_views=num_views+1 WHERE id=20143 |
Total query time: 0.00586 s |