From: Marcelo P. Lima (no email)
Date: Thu Feb 19 2004 - 15:53:49 EST
Hello everyone,
I'm new to the list, as well as new to postfix.
The Setup
-------------
postfix 2.0.16 on redhat linux 7.2.
I'm using MySQL 4.0.15 to hold virtual account information, and for
authentication. In addition, I'm doing SASL2 authentication. I'm
running Courier-IMAP for imapd, pop3d and smtpd. Finally, i have
Maildrop as the delivery agent.
This machine currently hosts 1 domain, to keep things simple: joesao.com
The Problem
-----------------
As a test, I'm connecting to my server at mail.joesao.com,
authenticating as /password, and trying to send
email to a user on ANOTHER domain and another machine (this user is
).
Note that I'm connecting to my server from another computer, using a
regular email client.
The email bounces back to me.
The Bounced Email
-----------------------------------------------------------------
Return-Path: <>
Delivered-To:
Received: by mail.joesao.com (Postfix)
id 2C8265B2DFF; Thu, 19 Feb 2004 14:54:18 -0500 (EST)
Date: Thu, 19 Feb 2004 14:54:18 -0500 (EST)
From: (Mail Delivery System)
Subject: Undelivered Mail Returned to Sender
To:
MIME-Version: 1.0
Content-Type: multipart/report; report-type=delivery-status;
boundary="C83945B2DFE.1077220458/mail.joesao.com"
Message-Id: <20040219195418 dot 2C8265B2DFF at mail dot joesao dot com>
This is a MIME-encapsulated message.
--C83945B2DFE.1077220458/mail.joesao.com
Content-Description: Notification
Content-Type: text/plain
This is the Postfix program at host mail.joesao.com.
I'm sorry to have to inform you that the message returned
below could not be delivered to one or more destinations.
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 message returned below.
The Postfix program
<>: mail for balka.com loops back to myself
--C83945B2DFE.1077220458/mail.joesao.com
Content-Description: Delivery error report
Content-Type: message/delivery-status
Reporting-MTA: dns; mail.joesao.com
Arrival-Date: Thu, 19 Feb 2004 14:54:17 -0500 (EST)
Final-Recipient: rfc822;
Action: failed
Status: 5.0.0
Diagnostic-Code: X-Postfix; mail for balka.com loops back to myself
--C83945B2DFE.1077220458/mail.joesao.com
Content-Description: Undelivered Message
Content-Type: message/rfc822
Received: from [192.168.1.103] (dsl092-214-223.atl1.dsl.speakeasy.net
[66.92.214.223])
by mail.joesao.com (Postfix) with ESMTP id C83945B2DFE
for <>; Thu, 19 Feb 2004 14:54:17 -0500 (EST)
Mime-Version: 1.0 (Apple Message framework v612)
Content-Transfer-Encoding: 7bit
Message-Id: <2DCAA4D7-6315-11D8-B55E-000A959FFA14 at joesao dot com>
Content-Type: text/plain; charset=US-ASCII; format=flowed
To: Marcelo Lima <>
From: Marcelo P.Lima <>
Subject: test
Date: Thu, 19 Feb 2004 14:52:42 -0500
X-Mailer: Apple Mail (2.612)
got?
--C83945B2DFE.1077220458/mail.joesao.com--
-----------------------------------------------------------------
The /var/log/maillog errors
----------------------------------
Feb 19 14:54:17 localhost postfix/smtpd[23537]: connect from
dsl092-214-223.atl1.dsl.speakeasy.net[66.92.214.223]
Feb 19 14:54:17 localhost postfix/smtpd[23537]: >
dsl092-214-223.atl1.dsl.speakeasy.net[66.92.214.223]: 220
mail.joesao.com ESMTP Postfix (2.0.16)
Feb 19 14:54:17 localhost postfix/smtpd[23537]: watchdog_pat: 0x808c650
Feb 19 14:54:17 localhost postfix/smtpd[23537]: <
dsl092-214-223.atl1.dsl.speakeasy.net[66.92.214.223]: EHLO
[192.168.1.103]
Feb 19 14:54:17 localhost postfix/smtpd[23537]: >
dsl092-214-223.atl1.dsl.speakeasy.net[66.92.214.223]:
250-mail.joesao.com
Feb 19 14:54:17 localhost postfix/smtpd[23537]: >
dsl092-214-223.atl1.dsl.speakeasy.net[66.92.214.223]: 250-PIPELINING
Feb 19 14:54:17 localhost postfix/smtpd[23537]: >
dsl092-214-223.atl1.dsl.speakeasy.net[66.92.214.223]: 250-SIZE 10240000
Feb 19 14:54:17 localhost postfix/smtpd[23537]: >
dsl092-214-223.atl1.dsl.speakeasy.net[66.92.214.223]: 250-VRFY
Feb 19 14:54:17 localhost postfix/smtpd[23537]: >
dsl092-214-223.atl1.dsl.speakeasy.net[66.92.214.223]: 250-ETRN
Feb 19 14:54:17 localhost postfix/smtpd[23537]: >
dsl092-214-223.atl1.dsl.speakeasy.net[66.92.214.223]: 250-AUTH PLAIN
OTP DIGEST-MD5 CRAM-MD5
Feb 19 14:54:17 localhost postfix/smtpd[23537]: >
dsl092-214-223.atl1.dsl.speakeasy.net[66.92.214.223]: 250-AUTH=PLAIN
OTP DIGEST-MD5 CRAM-MD5
Feb 19 14:54:17 localhost postfix/smtpd[23537]: match_hostname:
dsl092-214-223.atl1.dsl.speakeasy.net ~? 127.0.0.0/8
Feb 19 14:54:17 localhost postfix/smtpd[23537]: match_hostaddr:
66.92.214.223 ~? 127.0.0.0/8
Feb 19 14:54:17 localhost postfix/smtpd[23537]: match_list_match:
dsl092-214-223.atl1.dsl.speakeasy.net: no match
Feb 19 14:54:17 localhost postfix/smtpd[23537]: match_list_match:
66.92.214.223: no match
Feb 19 14:54:17 localhost postfix/smtpd[23537]: >
dsl092-214-223.atl1.dsl.speakeasy.net[66.92.214.223]: 250 8BITMIME
Feb 19 14:54:17 localhost postfix/smtpd[23537]: watchdog_pat: 0x808c650
Feb 19 14:54:17 localhost postfix/smtpd[23537]: <
dsl092-214-223.atl1.dsl.speakeasy.net[66.92.214.223]: AUTH PLAIN
AG1hcmNlbG8ubGltYUBqb2VzYW8uY29tQGpvZXNhby5jb20AcHg2N3J2cA==
Feb 19 14:54:17 localhost postfix/smtpd[23537]:
smtpd_sasl_authenticate: sasl_method PLAIN, init_response
AG1hcmNlbG8ubGltYUBqb2VzYW8uY29tQGpvZXNhby5jb20AcHg2N3J2cA==
Feb 19 14:54:17 localhost postfix/smtpd[23537]:
smtpd_sasl_authenticate: decoded initial response
Feb 19 14:54:17 localhost postfix/smtpd[23537]: >
dsl092-214-223.atl1.dsl.speakeasy.net[66.92.214.223]: 235
Authentication successful
Feb 19 14:54:17 localhost postfix/smtpd[23537]: watchdog_pat: 0x808c650
Feb 19 14:54:17 localhost postfix/smtpd[23537]: <
dsl092-214-223.atl1.dsl.speakeasy.net[66.92.214.223]: MAIL
FROM:<>
Feb 19 14:54:17 localhost postfix/smtpd[23537]: extract_addr: input:
<>
Feb 19 14:54:17 localhost postfix/smtpd[23537]: extract_addr: result:
Feb 19 14:54:17 localhost postfix/smtpd[23537]: fsspace: .: block size
4096, blocks free 17927410
Feb 19 14:54:17 localhost postfix/smtpd[23537]: smtpd_check_size:
blocks 4096 avail 17927410 min_free 0 size 0
Feb 19 14:54:17 localhost postfix/smtpd[23537]: connect to subsystem
public/cleanup
Feb 19 14:54:17 localhost postfix/smtpd[23537]: public/cleanup socket:
wanted attribute: queue_id
Feb 19 14:54:17 localhost postfix/smtpd[23537]: input attribute name:
queue_id
Feb 19 14:54:17 localhost postfix/smtpd[23537]: input attribute value:
C83945B2DFE
Feb 19 14:54:17 localhost postfix/smtpd[23537]: public/cleanup socket:
wanted attribute: (list terminator)
Feb 19 14:54:17 localhost postfix/smtpd[23537]: input attribute name:
(end)
Feb 19 14:54:17 localhost postfix/smtpd[23537]: send attr flags = 2
Feb 19 14:54:17 localhost postfix/smtpd[23537]: C83945B2DFE:
client=dsl092-214-223.atl1.dsl.speakeasy.net[66.92.214.223],
sasl_method=PLAIN, sasl_username=@joesao.com
Feb 19 14:54:17 localhost postfix/smtpd[23537]: >
dsl092-214-223.atl1.dsl.speakeasy.net[66.92.214.223]: 250 Ok
Feb 19 14:54:17 localhost postfix/smtpd[23537]: watchdog_pat: 0x808c650
Feb 19 14:54:17 localhost postfix/smtpd[23537]: <
dsl092-214-223.atl1.dsl.speakeasy.net[66.92.214.223]: RCPT
TO:<>
Feb 19 14:54:17 localhost postfix/smtpd[23537]: extract_addr: input:
<>
Feb 19 14:54:17 localhost postfix/smtpd[23537]: extract_addr: result:
Feb 19 14:54:17 localhost postfix/smtpd[23537]: generic_checks: START
Feb 19 14:54:17 localhost postfix/smtpd[23537]: generic_checks:
name=permit_sasl_authenticated
Feb 19 14:54:17 localhost postfix/smtpd[23537]: generic_checks:
name=permit_sasl_authenticated status=1
Feb 19 14:54:17 localhost postfix/smtpd[23537]: connect to subsystem
private/rewrite
Feb 19 14:54:17 localhost postfix/smtpd[23537]: send attr request =
rewrite
Feb 19 14:54:17 localhost postfix/smtpd[23537]: send attr rule =
canonicalize
Feb 19 14:54:17 localhost postfix/smtpd[23537]: send attr address =
Feb 19 14:54:17 localhost postfix/smtpd[23537]: private/rewrite socket:
wanted attribute: address
Feb 19 14:54:17 localhost postfix/smtpd[23537]: input attribute name:
address
Feb 19 14:54:17 localhost postfix/smtpd[23537]: input attribute value:
Feb 19 14:54:17 localhost postfix/smtpd[23537]: private/rewrite socket:
wanted attribute: (list terminator)
Feb 19 14:54:17 localhost postfix/smtpd[23537]: input attribute name:
(end)
Feb 19 14:54:17 localhost postfix/smtpd[23537]: rewrite_clnt:
canonicalize: ->
Feb 19 14:54:17 localhost postfix/smtpd[23537]: send attr request =
resolve
Feb 19 14:54:17 localhost postfix/smtpd[23537]: send attr address =
Feb 19 14:54:17 localhost postfix/smtpd[23537]: private/rewrite socket:
wanted attribute: transport
Feb 19 14:54:17 localhost postfix/smtpd[23537]: input attribute name:
transport
Feb 19 14:54:17 localhost postfix/smtpd[23537]: input attribute value:
smtp
Feb 19 14:54:17 localhost postfix/smtpd[23537]: private/rewrite socket:
wanted attribute: nexthop
Feb 19 14:54:17 localhost postfix/smtpd[23537]: input attribute name:
nexthop
Feb 19 14:54:17 localhost postfix/smtpd[23537]: input attribute value:
balka.com
Feb 19 14:54:17 localhost postfix/smtpd[23537]: private/rewrite socket:
wanted attribute: recipient
Feb 19 14:54:17 localhost postfix/smtpd[23537]: input attribute name:
recipient
Feb 19 14:54:17 localhost postfix/smtpd[23537]: input attribute value:
Feb 19 14:54:17 localhost postfix/smtpd[23537]: private/rewrite socket:
wanted attribute: flags
Feb 19 14:54:17 localhost postfix/smtpd[23537]: input attribute name:
flags
Feb 19 14:54:17 localhost postfix/smtpd[23537]: input attribute value:
4096
Feb 19 14:54:17 localhost postfix/smtpd[23537]: private/rewrite socket:
wanted attribute: (list terminator)
Feb 19 14:54:17 localhost postfix/smtpd[23537]: input attribute name:
(end)
Feb 19 14:54:17 localhost postfix/smtpd[23537]: resolve_clnt_query:
`' -> t=`smtp' h=`balka.com'
r=`'
Feb 19 14:54:17 localhost postfix/smtpd[23537]: ctable_locate: install
entry key
Feb 19 14:54:17 localhost postfix/smtpd[23537]: maps_find:
recipient_canonical_maps: : not found
Feb 19 14:54:17 localhost postfix/smtpd[23537]: match_string: balka.com
~? joesao.com
Feb 19 14:54:17 localhost postfix/smtpd[23537]: match_string: balka.com
~? mysql:/etc/postfix/mysql_transport_maps.cf
Feb 19 14:54:17 localhost postfix/smtpd[23537]: dict_mysql_lookup using
sql query: select transport from domain where domain = 'balka.com'
Feb 19 14:54:17 localhost postfix/smtpd[23537]: dict_mysql: attempting
to connect to host localhost
Feb 19 14:54:17 localhost postfix/smtpd[23537]: dict_mysql: successful
connection to host localhost
Feb 19 14:54:17 localhost postfix/smtpd[23537]: dict_mysql: successful
query from host localhost
Feb 19 14:54:17 localhost postfix/smtpd[23537]: dict_mysql_lookup:
retrieved 0 rows
Feb 19 14:54:17 localhost postfix/smtpd[23537]: match_string: balka.com
~? localhost.joesao.com
Feb 19 14:54:17 localhost postfix/smtpd[23537]: match_string: balka.com
~? mail.joesao.com
Feb 19 14:54:17 localhost postfix/smtpd[23537]: match_string: balka.com
~? www.joesao.com
Feb 19 14:54:17 localhost postfix/smtpd[23537]: match_list_match:
balka.com: no match
Feb 19 14:54:17 localhost postfix/smtpd[23537]: maps_find:
recipient_canonical_maps: @balka.com: not found
Feb 19 14:54:17 localhost postfix/smtpd[23537]: mail_addr_find:
-> (not found)
Feb 19 14:54:17 localhost postfix/smtpd[23537]: maps_find:
canonical_maps: : not found
Feb 19 14:54:17 localhost postfix/smtpd[23537]: match_string: balka.com
~? joesao.com
Feb 19 14:54:17 localhost postfix/smtpd[23537]: match_string: balka.com
~? mysql:/etc/postfix/mysql_transport_maps.cf
Feb 19 14:54:17 localhost postfix/smtpd[23537]: dict_mysql_lookup using
sql query: select transport from domain where domain = 'balka.com'
Feb 19 14:54:17 localhost postfix/smtpd[23537]: dict_mysql: successful
query from host localhost
Feb 19 14:54:17 localhost postfix/smtpd[23537]: dict_mysql_lookup:
retrieved 0 rows
Feb 19 14:54:17 localhost postfix/smtpd[23537]: match_string: balka.com
~? localhost.joesao.com
Feb 19 14:54:17 localhost postfix/smtpd[23537]: match_string: balka.com
~? mail.joesao.com
Feb 19 14:54:17 localhost postfix/smtpd[23537]: match_string: balka.com
~? www.joesao.com
Feb 19 14:54:17 localhost postfix/smtpd[23537]: match_list_match:
balka.com: no match
Feb 19 14:54:17 localhost postfix/smtpd[23537]: maps_find:
canonical_maps: @balka.com: not found
Feb 19 14:54:17 localhost postfix/smtpd[23537]: mail_addr_find:
-> (not found)
Feb 19 14:54:17 localhost postfix/smtpd[23537]: dict_mysql_lookup using
sql query: select goto from alias where address =
''
Feb 19 14:54:17 localhost postfix/smtpd[23537]: dict_mysql: attempting
to connect to host localhost
Feb 19 14:54:17 localhost postfix/smtpd[23537]: dict_mysql: successful
connection to host localhost
Feb 19 14:54:17 localhost postfix/smtpd[23537]: dict_mysql: successful
query from host localhost
Feb 19 14:54:17 localhost postfix/smtpd[23537]: dict_mysql_lookup:
retrieved 0 rows
Feb 19 14:54:17 localhost postfix/smtpd[23537]: maps_find:
virtual_alias_maps: : not found
Feb 19 14:54:17 localhost postfix/smtpd[23537]: match_string: balka.com
~? joesao.com
Feb 19 14:54:17 localhost postfix/smtpd[23537]: match_string: balka.com
~? mysql:/etc/postfix/mysql_transport_maps.cf
Feb 19 14:54:17 localhost postfix/smtpd[23537]: dict_mysql_lookup using
sql query: select transport from domain where domain = 'balka.com'
Feb 19 14:54:17 localhost postfix/smtpd[23537]: dict_mysql: successful
query from host localhost
Feb 19 14:54:17 localhost postfix/smtpd[23537]: dict_mysql_lookup:
retrieved 0 rows
Feb 19 14:54:17 localhost postfix/smtpd[23537]: match_string: balka.com
~? localhost.joesao.com
Feb 19 14:54:17 localhost postfix/smtpd[23537]: match_string: balka.com
~? mail.joesao.com
Feb 19 14:54:17 localhost postfix/smtpd[23537]: match_string: balka.com
~? www.joesao.com
Feb 19 14:54:17 localhost postfix/smtpd[23537]: match_list_match:
balka.com: no match
Feb 19 14:54:17 localhost postfix/smtpd[23537]: dict_mysql_lookup using
sql query: select goto from alias where address = '@balka.com'
Feb 19 14:54:17 localhost postfix/smtpd[23537]: dict_mysql: successful
query from host localhost
Feb 19 14:54:17 localhost postfix/smtpd[23537]: dict_mysql_lookup:
retrieved 0 rows
Feb 19 14:54:17 localhost postfix/smtpd[23537]: maps_find:
virtual_alias_maps: @balka.com: not found
Feb 19 14:54:17 localhost postfix/smtpd[23537]: mail_addr_find:
-> (not found)
Feb 19 14:54:17 localhost postfix/smtpd[23537]: >
dsl092-214-223.atl1.dsl.speakeasy.net[66.92.214.223]: 250 Ok
Feb 19 14:54:17 localhost postfix/smtpd[23537]: watchdog_pat: 0x808c650
Feb 19 14:54:18 localhost postfix/smtpd[23537]: <
dsl092-214-223.atl1.dsl.speakeasy.net[66.92.214.223]: DATA
Feb 19 14:54:18 localhost postfix/smtpd[23537]: >
dsl092-214-223.atl1.dsl.speakeasy.net[66.92.214.223]: 354 End data with
<CR><LF>.<CR><LF>
Feb 19 14:54:18 localhost postfix/smtpd[23537]: public/cleanup socket:
wanted attribute: status
Feb 19 14:54:18 localhost postfix/cleanup[23539]: C83945B2DFE:
message-id=<>
Feb 19 14:54:18 localhost postfix/qmgr[23535]: C83945B2DFE:
from=<>, size=605, nrcpt=1 (queue active)
Feb 19 14:54:18 localhost postfix/smtpd[23537]: input attribute name:
status
Feb 19 14:54:18 localhost postfix/smtpd[23537]: input attribute value: 0
Feb 19 14:54:18 localhost postfix/smtpd[23537]: public/cleanup socket:
wanted attribute: reason
Feb 19 14:54:18 localhost postfix/smtpd[23537]: input attribute name:
reason
Feb 19 14:54:18 localhost postfix/smtpd[23537]: input attribute value:
(end)
Feb 19 14:54:18 localhost postfix/smtpd[23537]: public/cleanup socket:
wanted attribute: (list terminator)
Feb 19 14:54:18 localhost postfix/smtpd[23537]: input attribute name:
(end)
Feb 19 14:54:18 localhost postfix/smtpd[23537]: >
dsl092-214-223.atl1.dsl.speakeasy.net[66.92.214.223]: 250 Ok: queued as
C83945B2DFE
Feb 19 14:54:18 localhost postfix/smtpd[23537]: watchdog_pat: 0x808c650
Feb 19 14:54:18 localhost postfix/smtp[23541]: warning: mailer loop:
best MX host for balka.com is local
Feb 19 14:54:18 localhost postfix/smtp[23541]: C83945B2DFE:
to=<>, relay=none, delay=1, status=bounced (mail
for balka.com loops back to myself)
Feb 19 14:54:18 localhost postfix/cleanup[23539]: 2C8265B2DFF:
message-id=<>
Feb 19 14:54:18 localhost postfix/qmgr[23535]: 2C8265B2DFF: from=<>,
size=2193, nrcpt=1 (queue active)
Feb 19 14:54:18 localhost postfix/pipe[23543]: 2C8265B2DFF:
to=<>, relay=maildrop, delay=0, status=sent
(joesao.com)
Feb 19 14:55:18 localhost postfix/smtpd[23537]: <
dsl092-214-223.atl1.dsl.speakeasy.net[66.92.214.223]: QUIT
Feb 19 14:55:18 localhost postfix/smtpd[23537]: >
dsl092-214-223.atl1.dsl.speakeasy.net[66.92.214.223]: 221 Bye
Feb 19 14:55:18 localhost postfix/smtpd[23537]: disconnect from
dsl092-214-223.atl1.dsl.speakeasy.net[66.92.214.223]
Feb 19 14:55:18 localhost postfix/smtpd[23537]: master_notify: status 1
Feb 19 14:55:18 localhost postfix/smtpd[23537]: connection closed
Feb 19 14:55:18 localhost postfix/smtpd[23537]: watchdog_stop: 0x808c650
Feb 19 14:55:18 localhost postfix/smtpd[23537]: watchdog_start:
0x808c650
Feb 19 14:55:57 localhost postfix/smtpd[23537]: proxymap stream
disconnect
Feb 19 14:55:57 localhost postfix/smtpd[23537]: rewrite stream
disconnect
Feb 19 14:55:57 localhost postfix/smtpd[23537]: watchdog_stop: 0x808c650
Feb 19 14:55:57 localhost postfix/smtpd[23537]: watchdog_start:
0x808c650
Feb 19 14:56:58 localhost postfix/smtpd[23537]: idle timeout -- exiting
The big problem, being, of course, "mail for balka.com loops back to
myself"
Result of postconf -n
--------------------------
[root at localhost admin]# postconf -n
alias_database = hash:/etc/postfix/aliases
alias_maps = hash:/etc/postfix/aliases
broken_sasl_auth_clients = yes
command_directory = /usr/sbin
config_directory = /etc/postfix
daemon_directory = /usr/libexec/postfix
debug_peer_level = 2
default_privs = nobody
default_transport = smtp
fallback_transport = maildrop
home_mailbox = Maildir/
mail_owner = postfix
mailq_path = /usr/bin/mailq
manpage_directory = /usr/local/man
mydestination = $mydomain, $transport_maps, localhost.$mydomain,
$myhostname, www.$mydomain
mydomain = joesao.com
myhostname = mail.joesao.com
mynetworks = 127.0.0.0/8
myorigin = $mydomain
newaliases_path = /usr/bin/newaliases
program_directory = /usr/sbin
queue_directory = /var/spool/postfix/
readme_directory = /etc/postfix/readme
relay_domains = $mydestination
sample_directory = /etc/postfix
sendmail_path = /usr/sbin/sendmail
setgid_group = postdrop
smtpd_banner = $myhostname ESMTP $mail_name ($mail_version)
smtpd_recipient_restrictions = permit_sasl_authenticated,
permit_mynetworks, reject_unauth_destination
smtpd_sasl_auth_enable = yes
smtpd_sasl_security_options = noanonymous
transport_maps = mysql:/etc/postfix/mysql_transport_maps.cf
unknown_local_recipient_reject_code = 450
virtual_alias_maps = mysql:/etc/postfix/mysql_virtual_alias_maps.cf
virtual_gid_maps = static:108
virtual_mailbox_base = /postfix
virtual_mailbox_limit = 100000000
virtual_mailbox_maps = mysql:/etc/postfix/mysql_virtual_mailbox_maps.cf
virtual_uid_maps = static:108
Please help!
Thanks,
Marcelo
|
|
|