config errors?

This is a discussion on config errors? within the mailing.postfix.users forums, part of the Mail Servers and Related category; im pretty sure i have something wrong in my config for postfix but i cant tell what it is. i ...


Go Back   Usenet Forums > Mail Servers and Related > mailing.postfix.users

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 11-10-2004
Nick Smith
 
Posts: n/a
Default config errors?

im pretty sure i have something wrong in my config for postfix but i
cant tell what it is. i can send mail fine with an email client like
firefox using my mail server with postfix/courier-imap, i currently have
squirrelmail for webmail and that is where the problems are starting, i
know SM uses the server directly but i cant seem to send mail through it
even though i can send it fine with an email client. its almost like
its tring to authenticate against my mysql db i have set up for local
mail clients users/pass db. but i dont know why it would do this when
tring to send an email, and i also get timeouts from my ISP's mailserver
for some reason when i dont through a mail client. here is my main.cf::

unknown_local_recipient_reject_code = 550
debug_peer_level = 2

debugger_command =
PATH=/bin:/usr/bin:/usr/local/bin:/usr/X11R6/bin
xxgdb $daemon_directory/$process_name $process_id & sleep 5

sendmail_path = /usr/sbin/sendmail
newaliases_path = /usr/bin/newaliases
mailq_path = /usr/bin/mailq
setgid_group = postdrop
html_directory = no
manpage_directory = /usr/share/man
sample_directory = /etc/postfix
queue_directory = /var/spool/postfix
command_directory = /usr/sbin
daemon_directory = /usr/lib/postfix
mail_owner = postfix

readme_directory = /usr/share/doc/postfix-2.1.5-r1/readme
default_destination_concurrency_limit = 10
alias_database = hash:/etc/mail/aliases
local_destination_concurrency_limit = 2
#alias_maps = hash:/etc/mail/aliases

myhostname = mail.computernick.com
mydomain = computernick.com
myorigin = computernick.com
inet_interfaces = all
mydestination = mail.computernick.com, localhost.computernick.com,
computernick.com
mynetworks = 192.168.0.0/24, 127.0.0.0/8
home_mailbox = .maildir/
relayhost = mail.comcast.net

smtpd_sasl_auth_enable = yes
smtpd_sasl2_auth_enable = yes
smtpd_sasl_security_options = noanonymous
broken_sasl_auth_clients = yes
smtpd_sasl_local_domain =

#// The broken_sasl_auth_clients option and the login auth method
#// are for outlook and outlook express only and are undocumented.
#// Isn't having to hack software for stupid, broken, M$ BS great?
#// smtpd_sasl_local_domain appends a domain name to clients using
#// smtp-auth. Make sure it's blank or your user names will get
#// mangled by postfix and be unable to auth.

smtpd_recipient_restrictions =
permit_sasl_authenticated,
permit_mynetworks,
reject_unauth_destination

smtpd_use_tls = yes
smtpd_tls_auth_only = yes
smtpd_tls_key_file = /etc/postfix/newreq.pem
smtpd_tls_cert_file = /etc/postfix/newcert.pem
smtpd_tls_CAfile = /etc/postfix/cacert.pem
smtpd_tls_loglevel = 3
smtpd_tls_received_header = yes
smtpd_tls_session_cache_timeout = 3600s
tls_random_source = dev:/dev/urandom

alias_maps = mysql:/etc/postfix/mysql-aliases.cf
relocated_maps = mysql:/etc/postfix/mysql-relocated.cf

local_transport = local
local_recipient_maps = $alias_maps $virtual_mailbox_maps unix:passwd.byname

virtual_transport = virtual
# $other-virtual-domain.com

virtual_minimum_uid = 1000
virtual_gid_maps = static:100
virtual_mailbox_maps = mysql:/etc/postfix/mysql-virtual-maps.cf
virtual_alias_maps = mysql:/etc/postfix/mysql-virtual.cf
virtual_uid_maps = static:1001
virtual_mailbox_base = /
#virtual_mailbox_limit =

Here is a little bit from my syslog when i try to send mail with SM::

mail .maildir # tail -n 150 /var/log/syslog
mail postfix/smtpd[28655]: watchdog_stop: 0x80a5d20
mail postfix/qmgr[27732]: 0B8C53FC23: removed
mail postfix/smtpd[28655]: watchdog_start: 0x80a5d20
mail postfix/smtpd[28655]: watchdog_stop: 0x80a5d20
mail postfix/smtpd[28655]: watchdog_start: 0x80a5d20
mail postfix/smtpd[28655]: connection established
mail postfix/smtpd[28655]: master_notify: status 0
mail postfix/smtpd[28655]: name_mask: resource
mail postfix/smtpd[28655]: name_mask: software
mail postfix/smtpd[28655]: name_mask: noanonymous
mail postfix/smtpd[28655]: connect from mail.computernick.com[127.0.0.1]
mail postfix/smtpd[28655]: match_list_match: mail.computernick.com: no
match
mail postfix/smtpd[28655]: match_list_match: 127.0.0.1: no match
mail postfix/smtpd[28655]: match_list_match: mail.computernick.com: no
match
mail postfix/smtpd[28655]: match_list_match: 127.0.0.1: no match
mail postfix/smtpd[28655]: > mail.computernick.com[127.0.0.1]: 220
mail.computernick.com ESMTP Postfix
mail postfix/smtpd[28655]: watchdog_pat: 0x80a5d20
mail postfix/smtpd[28655]: < mail.computernick.com[127.0.0.1]: EHLO
mail.computernick.com
mail postfix/smtpd[28655]: > mail.computernick.com[127.0.0.1]:
250-mail.computernick.com
mail postfix/smtpd[28655]: > mail.computernick.com[127.0.0.1]:
250-PIPELINING
mail postfix/smtpd[28655]: > mail.computernick.com[127.0.0.1]: 250-SIZE
10240000
mail postfix/smtpd[28655]: > mail.computernick.com[127.0.0.1]: 250-VRFY
mail postfix/smtpd[28655]: > mail.computernick.com[127.0.0.1]: 250-ETRN
mail postfix/smtpd[28655]: > mail.computernick.com[127.0.0.1]: 250-STARTTLS
mail postfix/smtpd[28655]: match_list_match: mail.computernick.com: no
match
mail postfix/smtpd[28655]: match_list_match: 127.0.0.1: no match
mail postfix/smtpd[28655]: > mail.computernick.com[127.0.0.1]: 250 8BITMIME
mail postfix/smtpd[28655]: watchdog_pat: 0x80a5d20
mail postfix/smtpd[28655]: < mail.computernick.com[127.0.0.1]: MAIL
FROM:<nick@computernick.com>
mail postfix/smtpd[28655]: extract_addr: input: <nick@computernick.com>
mail postfix/smtpd[28655]: smtpd_check_addr: addr=nick@computernick.com
mail postfix/smtpd[28655]: ctable_locate: leave existing entry key
nick@computernick.com
mail postfix/smtpd[28655]: extract_addr: result: nick@computernick.com
mail postfix/smtpd[28655]: fsspace: .: block size 4096, blocks free
18082796
mail postfix/smtpd[28655]: smtpd_check_size: blocks 4096 avail 18082796
min_free 0 msg_size_limit 10240000
mail postfix/smtpd[28655]: > mail.computernick.com[127.0.0.1]: 250 Ok
mail postfix/smtpd[28655]: watchdog_pat: 0x80a5d20
mail postfix/smtpd[28655]: < mail.computernick.com[127.0.0.1]: RCPT
TO:<c0mputernick@yahoo.com>
mail postfix/smtpd[28655]: extract_addr: input: <c0mputernick@yahoo.com>
mail postfix/smtpd[28655]: smtpd_check_addr: addr=c0mputernick@yahoo.com
mail postfix/smtpd[28655]: send attr request = rewrite
mail postfix/smtpd[28655]: send attr rule = canonicalize
mail postfix/smtpd[28655]: send attr address = c0mputernick@yahoo.com
mail postfix/smtpd[28655]: private/rewrite socket: wanted attribute:
address
mail postfix/smtpd[28655]: input attribute name: address
mail postfix/smtpd[28655]: input attribute value: c0mputernick@yahoo.com
mail postfix/smtpd[28655]: private/rewrite socket: wanted attribute:
(list terminator)
mail postfix/smtpd[28655]: input attribute name: (end)
mail postfix/smtpd[28655]: rewrite_clnt: canonicalize:
c0mputernick@yahoo.com -> c0mputernick@yahoo.com
mail postfix/smtpd[28655]: send attr request = resolve
mail postfix/smtpd[28655]: send attr address = c0mputernick@yahoo.com
mail postfix/smtpd[28655]: private/rewrite socket: wanted attribute:
transport
mail postfix/smtpd[28655]: input attribute name: transport
mail postfix/smtpd[28655]: input attribute value: smtp
mail postfix/smtpd[28655]: private/rewrite socket: wanted attribute:
nexthop
mail postfix/smtpd[28655]: input attribute name: nexthop
mail postfix/smtpd[28655]: input attribute value: mail.comcast.net
mail postfix/smtpd[28655]: private/rewrite socket: wanted attribute:
recipient
mail postfix/smtpd[28655]: input attribute name: recipient
mail postfix/smtpd[28655]: input attribute value: c0mputernick@yahoo.com
mail postfix/smtpd[28655]: private/rewrite socket: wanted attribute: flags
mail postfix/smtpd[28655]: input attribute name: flags
mail postfix/smtpd[28655]: input attribute value: 4096
mail postfix/smtpd[28655]: private/rewrite socket: wanted attribute:
(list terminator)
mail postfix/smtpd[28655]: input attribute name: (end)
mail postfix/smtpd[28655]: resolve_clnt: `c0mputernick@yahoo.com' ->
transp=`smtp' host=`mail.comcast.net' rcpt=`c0mputernick@yahoo.com'
flags= class=default
mail postfix/smtpd[28655]: ctable_locate: install entry key
c0mputernick@yahoo.com
mail postfix/smtpd[28655]: extract_addr: result: c0mputernick@yahoo.com
mail postfix/smtpd[28655]: >>> START Recipient address RESTRICTIONS <<<
mail postfix/smtpd[28655]: generic_checks: name=permit_sasl_authenticated
mail postfix/smtpd[28655]: generic_checks:
name=permit_sasl_authenticated status=0
mail postfix/smtpd[28655]: generic_checks: name=permit_mynetworks
mail postfix/smtpd[28655]: permit_mynetworks: mail.computernick.com
127.0.0.1
mail postfix/smtpd[28655]: match_hostname: mail.computernick.com ~?
192.168.0.0/24
mail postfix/smtpd[28655]: match_hostaddr: 127.0.0.1 ~? 192.168.0.0/24
mail postfix/smtpd[28655]: match_hostname: mail.computernick.com ~?
127.0.0.0/8
mail postfix/smtpd[28655]: match_hostaddr: 127.0.0.1 ~? 127.0.0.0/8
mail postfix/smtpd[28655]: generic_checks: name=permit_mynetworks status=1
mail postfix/smtpd[28655]: >>> CHECKING RECIPIENT MAPS <<<
mail postfix/smtpd[28655]: ctable_locate: leave existing entry key
c0mputernick@yahoo.com
mail postfix/smtpd[28655]: maps_find: recipient_canonical_maps:
c0mputernick@yahoo.com: not found
mail postfix/smtpd[28655]: match_string: yahoo.com ~? mail.computernick.com
mail postfix/smtpd[28655]: match_string: yahoo.com ~?
localhost.computernick.com
mail postfix/smtpd[28655]: match_string: yahoo.com ~? computernick.com
mail postfix/smtpd[28655]: match_list_match: yahoo.com: no match
mail postfix/smtpd[28655]: maps_find: recipient_canonical_maps:
@yahoo.com: not found
mail postfix/smtpd[28655]: mail_addr_find: c0mputernick@yahoo.com ->
(not found)
mail postfix/smtpd[28655]: maps_find: canonical_maps:
c0mputernick@yahoo.com: not found
mail postfix/smtpd[28655]: match_string: yahoo.com ~? mail.computernick.com
mail postfix/smtpd[28655]: match_string: yahoo.com ~?
localhost.computernick.com
mail postfix/smtpd[28655]: match_string: yahoo.com ~? computernick.com
mail postfix/smtpd[28655]: match_list_match: yahoo.com: no match
mail postfix/smtpd[28655]: maps_find: canonical_maps: @yahoo.com: not found
mail postfix/smtpd[28655]: mail_addr_find: c0mputernick@yahoo.com ->
(not found)
mail postfix/smtpd[28655]: dict_mysql_lookup using sql query: select
destination from virtual where email = 'c0mputernick@yahoo.com'
mail postfix/smtpd[28655]: dict_mysql_get_active: attempting to connect
to host unix:/var/run/mysqld/mysqld.sock
mail postfix/smtpd[28655]: dict_mysql: successful connection to host
unix:/var/run/mysqld/mysqld.sock
mail postfix/smtpd[28655]: dict_mysql: successful query from host
unix:/var/run/mysqld/mysqld.sock
mail postfix/smtpd[28655]: dict_mysql_lookup: retrieved 0 rows
mail postfix/smtpd[28655]: maps_find: virtual_alias_maps:
c0mputernick@yahoo.com: not found
mail postfix/smtpd[28655]: match_string: yahoo.com ~? mail.computernick.com
mail postfix/smtpd[28655]: match_string: yahoo.com ~?
localhost.computernick.com
mail postfix/smtpd[28655]: match_string: yahoo.com ~? computernick.com
mail postfix/smtpd[28655]: match_list_match: yahoo.com: no match
mail postfix/smtpd[28655]: dict_mysql_lookup using sql query: select
destination from virtual where email = '@yahoo.com'
mail postfix/smtpd[28655]: dict_mysql_get_active: found active
connection to host unix:/var/run/mysqld/mysqld.sock
mail postfix/smtpd[28655]: dict_mysql: successful query from host
unix:/var/run/mysqld/mysqld.sock
mail postfix/smtpd[28655]: dict_mysql_lookup: retrieved 0 rows
mail postfix/smtpd[28655]: maps_find: virtual_alias_maps: @yahoo.com:
not found
mail postfix/smtpd[28655]: mail_addr_find: c0mputernick@yahoo.com ->
(not found)
mail postfix/smtpd[28655]: connect to subsystem public/cleanup
mail postfix/smtpd[28655]: public/cleanup socket: wanted attribute:
queue_id
mail postfix/smtpd[28655]: input attribute name: queue_id
mail postfix/smtpd[28655]: input attribute value: 5672E688C1
mail postfix/smtpd[28655]: public/cleanup socket: wanted attribute:
(list terminator)
mail postfix/smtpd[28655]: input attribute name: (end)
mail postfix/smtpd[28655]: send attr flags = 50
mail postfix/smtpd[28655]: 5672E688C1:
client=mail.computernick.com[127.0.0.1]
mail postfix/smtpd[28655]: > mail.computernick.com[127.0.0.1]: 250 Ok
mail postfix/smtpd[28655]: watchdog_pat: 0x80a5d20
mail postfix/smtpd[28655]: < mail.computernick.com[127.0.0.1]: DATA
mail postfix/smtpd[28655]: > mail.computernick.com[127.0.0.1]: 354 End
data with <CR><LF>.<CR><LF>
mail postfix/smtpd[28655]: public/cleanup socket: wanted attribute: status
mail postfix/cleanup[28659]: 5672E688C1:
message-id=<33609.192.168.0.1.1100054600.squirrel@192.168. 0.1>
mail postfix/smtpd[28655]: input attribute name: status
mail postfix/smtpd[28655]: input attribute value: 0
mail postfix/smtpd[28655]: public/cleanup socket: wanted attribute: reason
mail postfix/smtpd[28655]: input attribute name: reason
mail postfix/smtpd[28655]: input attribute value: (end)
mail postfix/smtpd[28655]: public/cleanup socket: wanted attribute:
(list terminator)
mail postfix/smtpd[28655]: input attribute name: (end)
mail postfix/qmgr[27732]: 5672E688C1: from=<nick@computernick.com>,
size=787, nrcpt=1 (queue active)
mail postfix/smtpd[28655]: > mail.computernick.com[127.0.0.1]: 250 Ok:
queued as 5672E688C1
mail postfix/smtpd[28655]: watchdog_pat: 0x80a5d20
mail postfix/smtpd[28655]: < mail.computernick.com[127.0.0.1]: QUIT
mail imapd: Connection, ip=[127.0.0.1]
mail postfix/smtpd[28655]: > mail.computernick.com[127.0.0.1]: 221 Bye
mail imapd: LOGIN, user=nick@computernick.com, ip=[127.0.0.1],
protocol=IMAP
mail postfix/smtpd[28655]: disconnect from mail.computernick.com[127.0.0.1]
mail postfix/smtpd[28655]: master_notify: status 1
mail postfix/smtpd[28655]: connection closed
mail imapd: LOGOUT, user=nick@computernick.com, ip=[127.0.0.1],
headers=0, body=0, time=0
mail postfix/smtpd[28655]: watchdog_stop: 0x80a5d20
mail postfix/smtpd[28655]: watchdog_start: 0x80a5d20
mail postfix/smtp[28669]: connect to mail.comcast.net[63.240.76.10]:
Connection timed out (port 25)
mail postfix/smtp[28669]: connect to mail.comcast.net[204.127.198.10]:
Connection timed out (port 25)
mail postfix/smtpd[28655]: watchdog_stop: 0x80a5d20
mail postfix/smtpd[28655]: watchdog_start: 0x80a5d20
mail postfix/qmgr[27732]: 3FAB745342: from=<nick@nyc0nshack.com>,
size=1129, nrcpt=1 (queue active)
mail postfix/qmgr[27732]: 7C83B45337: from=<nick@nyc0nshack.com>,
size=751, nrcpt=3 (queue active)
mail postfix/smtp[28669]: connect to mail.comcast.net[204.127.202.10]:
Connection timed out (port 25)
mail postfix/smtp[28717]: connect to mail.comcast.net[216.148.227.80]:
Connection timed out (port 25)
mail postfix/smtp[28716]: connect to mail.comcast.net[204.127.198.10]:
Connection timed out (port 25)
mail postfix/smtpd[28655]: rewrite stream disconnect
mail postfix/smtpd[28655]: watchdog_stop: 0x80a5d20
mail postfix/smtpd[28655]: watchdog_start: 0x80a5d20
mail postfix/smtpd[28655]: idle timeout -- exiting
mail postfix/smtp[28669]: connect to mail.comcast.net[216.148.227.80]:
Connection timed out (port 25)
mail postfix/smtp[28669]: 5672E688C1: to=<c0mputernick@yahoo.com>,
relay=none, delay=121, status=deferred (connect to
mail.comcast.net[216.148.227.80]: Connection timed out)
mail postfix/smtp[28717]: connect to mail.comcast.net[204.127.198.10]:
Connection timed out (port 25)
mail postfix/smtp[28716]: connect to mail.comcast.net[204.127.202.10]:
Connection timed out (port 25)
mail postfix/smtp[28717]: connect to mail.comcast.net[63.240.76.10]:
Connection timed out (port 25)
mail postfix/smtp[28716]: connect to mail.comcast.net[216.148.227.80]:
Connection timed out (port 25)
mail imapd: Connection, ip=[127.0.0.1]
mail imapd: LOGIN, user=nick@computernick.com, ip=[127.0.0.1],
protocol=IMAP
mail imapd: LOGOUT, user=nick@computernick.com, ip=[127.0.0.1],
headers=0, body=0, time=1
mail postfix/smtp[28717]: connect to mail.comcast.net[204.127.202.10]:
Connection timed out (port 25)
mail postfix/smtp[28716]: connect to mail.comcast.net[63.240.76.10]:
Connection timed out (port 25)
mail postfix/smtp[28717]: 7C83B45337: to=<computernick@gmail.com>,
relay=none, delay=89317, status=deferred (connect to
mail.comcast.net[204.127.202.10]: Connection timed out)


here at the end you can see where the timeouts are happening, i dont
know why they only happen with SM and not with a regular mail client if
they are both using the same setup. is there something wrong with my
setup? i have compaired the config files to another server of mine and
they are identical, one server works, this one is giving me a fit. let
me know if you need any more info.

thanks for any and all help

nick

Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT +1. The time now is 11:18 PM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0