Current time: 11-25-2024, 06:37 PM Hello There, Guest! (LoginRegister)


Post Reply 
[SOLVED] Postfix problems under FreeBSD 8.0-p2
Author Message
BeNe Offline
Moderator
*****
Moderators

Posts: 5,899
Joined: Jan 2007
Reputation: 68
Post: #1
Question [SOLVED] Postfix problems under FreeBSD 8.0-p2
I have still some problems with Postfix under FreeBSD 8
The Problem is that i´m unable to send some Mails.
Please check the maillog here:
Code:
Mar  4 15:29:54 matrix postfix/postfix-script[3690]: starting the Postfix mail system
Mar  4 15:29:54 matrix postfix/master[3691]: daemon started -- version 2.6.5, configuration /usr/local/etc/postfix
Mar  4 15:29:54 matrix authdaemond: modules="authuserdb authvchkpw authpam authldap authmysql authpgsql", daemons=5
Mar  4 15:29:54 matrix authdaemond: Installing libauthuserdb
Mar  4 15:29:54 matrix authdaemond: Installation complete: authuserdb
Mar  4 15:29:54 matrix authdaemond: Installing libauthvchkpw
Mar  4 15:29:54 matrix authdaemond: file not found
Mar  4 15:29:54 matrix authdaemond: Installing libauthpam
Mar  4 15:29:54 matrix authdaemond: Installation complete: authpam
Mar  4 15:29:54 matrix authdaemond: Installing libauthldap
Mar  4 15:29:54 matrix authdaemond: file not found
Mar  4 15:29:54 matrix authdaemond: Installing libauthmysql
Mar  4 15:29:54 matrix authdaemond: Installation complete: authmysql
Mar  4 15:29:54 matrix authdaemond: Installing libauthpgsql
Mar  4 15:29:54 matrix authdaemond: file not found
Mar  4 15:30:02 matrix imapd: LOGIN, user=bene@matrix.my-domain.tld, ip=[::ffff:127.0.0.1], port=[61081], protocol=IMAP
Mar  4 15:30:02 matrix imapd: LOGOUT, user=bene@matrix.my-domain.tld, ip=[::ffff:127.0.0.1], headers=0, body=0, rcvd=87, sent=391, time=0
Mar  4 15:30:02 matrix imapd: LOGIN, user=bene@matrix.my-domain.tld, ip=[::ffff:127.0.0.1], port=[52629], protocol=IMAP
Mar  4 15:30:02 matrix imapd: LOGOUT, user=bene@matrix.my-domain.tld, ip=[::ffff:127.0.0.1], headers=0, body=0, rcvd=119, sent=900, time=0
Mar  4 15:30:10 matrix postfix/smtpd[3738]: connect from unknown[127.0.0.1]
Mar  4 15:30:10 matrix postfix/trivial-rewrite[3739]: warning: do not list domain matrix.my-domain.tld in BOTH mydestination and virtual_mailbox_domains
Mar  4 15:30:10 matrix postfix/trivial-rewrite[3739]: warning: do not list domain matrix.my-domain.tld in BOTH mydestination and virtual_mailbox_domains
Mar  4 15:30:10 matrix postfix/smtpd[3738]: 5443D2E0B0: client=unknown[127.0.0.1]
Mar  4 15:30:10 matrix postfix/cleanup[3740]: 5443D2E0B0: message-id=<7897ee79350e81e379a3fe8977b62ccf.squirrel@admin.matrix.my-domain.tld>
Mar  4 15:30:10 matrix postfix/qmgr[3697]: 5443D2E0B0: from=<bene@matrix.my-domain.tld>, size=820, nrcpt=1 (queue active)
Mar  4 15:30:10 matrix postfix/trivial-rewrite[3739]: warning: do not list domain matrix.my-domain.tld in BOTH mydestination and virtual_mailbox_domains
Mar  4 15:30:10 matrix postfix/smtpd[3738]: disconnect from unknown[127.0.0.1]
Mar  4 15:30:10 matrix imapd: LOGIN, user=bene@matrix.my-domain.tld, ip=[::ffff:127.0.0.1], port=[63366], protocol=IMAP
Mar  4 15:30:10 matrix postfix/local[3742]: 5443D2E0B0: to=<bene2@matrix.my-domain.tld>, relay=local, delay=0.17, delays=0.13/0.02/0/0.02, dsn=5.1.1, status=bounced (unknown user: "bene2")
Mar  4 15:30:10 matrix postfix/cleanup[3740]: 793422E0B2: message-id=<20100304143010.793422E0B2@matrix.my-domain.tld>
Mar  4 15:30:10 matrix postfix/qmgr[3697]: 793422E0B2: from=<>, size=2799, nrcpt=1 (queue active)
Mar  4 15:30:10 matrix postfix/trivial-rewrite[3739]: warning: do not list domain matrix.my-domain.tld in BOTH mydestination and virtual_mailbox_domains
Mar  4 15:30:10 matrix postfix/bounce[3743]: 5443D2E0B0: sender non-delivery notification: 793422E0B2
Mar  4 15:30:10 matrix postfix/qmgr[3697]: 5443D2E0B0: removed
Mar  4 15:30:10 matrix postfix/local[3742]: 793422E0B2: to=<bene@matrix.my-domain.tld>, relay=local, delay=0.01, delays=0/0/0/0, dsn=5.1.1, status=bounced (unknown user: "bene")
Mar  4 15:30:10 matrix postfix/qmgr[3697]: 793422E0B2: removed
Mar  4 15:30:10 matrix imapd: LOGOUT, user=bene@matrix.my-domain.tld, ip=[::ffff:127.0.0.1], headers=0, body=0, rcvd=688, sent=203, time=0
Mar  4 15:30:10 matrix imapd: LOGIN, user=bene@matrix.my-domain.tld, ip=[::ffff:127.0.0.1], port=[54139], protocol=IMAP
Mar  4 15:30:10 matrix imapd: LOGOUT, user=bene@matrix.my-domain.tld, ip=[::ffff:127.0.0.1], headers=0, body=0, rcvd=119, sent=900, time=0
Mar  4 15:30:14 matrix imapd: LOGIN, user=bene@matrix.my-domain.tld, ip=[::ffff:127.0.0.1], port=[61456], protocol=IMAP
Mar  4 15:30:14 matrix imapd: LOGOUT, user=bene@matrix.my-domain.tld, ip=[::ffff:127.0.0.1], headers=0, body=0, rcvd=119, sent=900, time=0
Mar  4 15:30:15 matrix imapd: LOGIN, user=bene@matrix.my-domain.tld, ip=[::ffff:127.0.0.1], port=[47581], protocol=IMAP
Mar  4 15:30:15 matrix imapd: LOGOUT, user=bene@matrix.my-domain.tld, ip=[::ffff:127.0.0.1], headers=410, body=0, rcvd=311, sent=1818, time=0

Here is the current config:
Code:
[root@matrix /usr/local/etc/postfix]# postconf -n
alias_database = hash:/usr/local/etc/postfix/ispcp/aliases
alias_maps = hash:/usr/local/etc/postfix/ispcp/aliases
append_at_myorigin = yes
append_dot_mydomain = no
biff = no
broken_sasl_auth_clients = yes
command_directory = /usr/local/sbin
config_directory = /usr/local/etc/postfix
daemon_directory = /usr/local/libexec/postfix
inet_interfaces = all
local_destination_recipient_limit = 1
local_recipient_maps = unix:passwd.byname $alias_database
local_transport = local
mail_spool_directory = /var/mail
mailbox_command = procmail -a "$EXTENSION"
mailbox_size_limit = 0
message_size_limit = 0
mydestination = $myhostname, $mydomain
mydomain = matrix.my-domain.tld
myhostname = matrix.my-domain.tld
mynetworks_style = host
myorigin = $myhostname
recipient_delimiter = +
setgid_group = maildrop
smtpd_banner = $myhostname ESMTP ispCP 1.0.5 OMEGA Managed
smtpd_data_restrictions = reject_multi_recipient_bounce,                               reject_unauth_pipelining
smtpd_helo_required = yes
smtpd_helo_restrictions = permit_mynetworks,                               permit_sasl_authenticated,                               reject_invalid_helo_hostname,                               reject_non_fqdn_helo_hostname
smtpd_recipient_restrictions = reject_non_fqdn_recipient,                               reject_unknown_recipient_domain,                               permit_mynetworks,                               permit_sasl_authenticated,                               reject_unauth_destination,                               reject_unlisted_recipient,                               check_policy_service inet:127.0.0.1:12525,                               check_policy_service inet:127.0.0.1:10023,                               permit
smtpd_sasl_auth_enable = yes
smtpd_sasl_local_domain =
smtpd_sasl_security_options = noanonymous
smtpd_sender_restrictions = reject_non_fqdn_sender,                               reject_unknown_sender_domain,                               permit_mynetworks,                               permit_sasl_authenticated
transport_maps = hash:/usr/local/etc/postfix/ispcp/transport
virtual_alias_maps = hash:/usr/local/etc/postfix/ispcp/aliases
virtual_gid_maps = static:125
virtual_mailbox_base = /var/mail/virtual
virtual_mailbox_domains = hash:/usr/local/etc/postfix/ispcp/domains
virtual_mailbox_limit = 0
virtual_mailbox_maps = hash:/usr/local/etc/postfix/ispcp/mailboxes
virtual_minimum_uid = 1003
virtual_transport = virtual
virtual_uid_maps = static:1003
[root@matrix /usr/local/etc/postfix]

I was wondering that only the ispCP GUI was damn slow under FreeBSD.
The reason is/was that postfix could not deliver the Error/Notice mails sent by the GUI and end in an Error 500. I disabled Posfix to test this and voila, the ispCP GUI works perfect without any Error 500. There was also a problem with the aliases first (-> unable to open), but after a "postalias" this error was fixed.

As i said, i´m still unable to send a mail from one user to an other!

This is my "/usr/local/lib/sasl2/smtpd.conf"
Code:
pwcheck_method: auxprop
auxprop_plugin: sasldb
mech_list: PLAIN LOGIN CRAM-MD5 DIGEST-MD5

Here is the Output on the Console:
Code:
saslpasswd2: sql_select option missing
saslpasswd2: auxpropfunc error no mechanism available
saslpasswd2: error deleting entry frin sasldb: DB_NOTFOUND: No matching key/data pair found

Sirko (http://www.isp-control.net/forum/thread-9649.html) talked from "/usr/local/etc/sasl2/smtpd.conf" but that path doesn´t exist. Looks like i use auxprop that isn´t available ?

Here is the current HowTo:
--> http://www.isp-control.net/documentation...on:freebsd

My config is wrong ?
A Module or Package is missing ?

Thanks & Greez
BeNe
(This post was last modified: 03-05-2010 04:24 AM by BeNe.)
03-05-2010 01:56 AM
Visit this user's website Find all posts by this user Quote this message in a reply
Post Reply 


Messages In This Thread
[SOLVED] Postfix problems under FreeBSD 8.0-p2 - BeNe - 03-05-2010 01:56 AM

Forum Jump:


User(s) browsing this thread: 1 Guest(s)