Postfix refuses to accept emails from the internet

Marco Betschart marbetschar at icloud.com
Tue Apr 7 11:36:16 CEST 2015


Ok, found it. For some reason the wrong port was in the /etc/postfix/main.cf for the content_filter option.
I've corrected it now and this error appeared.

But now I got a really strange error, which I encountered already yesterday and do not have any clue at all :(
Here the log from /var/log/mail.log - as far as I can see this indicates that everything runs fine?

Apr  7 11:29:17 alex postfix/smtpd[3712]: 63CC89A012: client=st11p05mm-asmtp002.mac.com[17.172.108.250]
Apr  7 11:29:17 alex postfix/cleanup[3722]: 63CC89A012: message-id=<2115c540-a418-4643-99c7-cba6067d78ad at me.com>
Apr  7 11:29:17 alex postfix/qmgr[3709]: 63CC89A012: from=<marbetschar at icloud.com>, size=2148, nrcpt=1 (queue active)
Apr  7 11:29:17 alex postfix/smtpd[3725]: connect from localhost[127.0.0.1]
Apr  7 11:29:17 alex postfix/smtpd[3725]: B05F09A013: client=localhost[127.0.0.1], orig_queue_id=63CC89A012, orig_client=st11p05mm-asmtp002.mac.com[17.172.108.250]
Apr  7 11:29:17 alex postfix/cleanup[3726]: B05F09A013: message-id=<2115c540-a418-4643-99c7-cba6067d78ad at me.com>
Apr  7 11:29:17 alex postfix/qmgr[3709]: B05F09A013: from=<marbetschar at icloud.com>, size=2148, nrcpt=1 (queue active)
Apr  7 11:29:17 alex amavis[3622]: (03622-01) Passed CLEAN {RelayedInbound}, [17.172.108.250]:47651 [17.172.108.223] <marbetschar at icloud.com> -> <betschart at mandelkind.ch>, Queue-ID: 63CC89A012, Message-ID: <2115c540-a418-4643-99c7-cba6067d78ad at me.com>, mail_id: FnSe4GVIIx5o, Hits: -, size: 2148, queued_as: B05F09A013, 198 ms
Apr  7 11:29:17 alex postfix/smtpd[3712]: disconnect from st11p05mm-asmtp002.mac.com[17.172.108.250]
Apr  7 11:29:17 alex postfix/smtp[3723]: 63CC89A012: to=<betschart at mandelkind.ch>, orig_to=<marco at mandelkind.ch>, relay=127.0.0.1[127.0.0.1]:10024, delay=0.87, delays=0.65/0.01/0/0.2, dsn=2.0.0, status=sent (250 2.0.0 from MTA(smtp:[127.0.0.1]:10025): 250 2.0.0 Ok: queued as B05F09A013)
Apr  7 11:29:17 alex postfix/qmgr[3709]: 63CC89A012: removed
Apr  7 11:29:17 alex postfix/smtp[3727]: B05F09A013: to=<betschart at mandelkind.ch>, relay=127.0.0.1[127.0.0.1]:10026, delay=0.09, delays=0.04/0.04/0/0.01, dsn=2.0.0, status=sent (250 Ok)
Apr  7 11:29:17 alex postfix/qmgr[3709]: B05F09A013: removed

But for some reason, the mail is not dropped to the inbox of the user :(
Any help would be highly appreciated!

Am 07. April 2015 um 11:19 schrieb Marco Betschart <marbetschar at me.com>:

Some more infos from the /var/log/mail.log:


Apr  7 11:16:03 alex postfix/smtpd[2880]: connect from st11p05mm-asmtp002.mac.com[17.172.108.250]
Apr  7 11:16:07 alex postfix/smtpd[2880]: 243B09A00D: client=st11p05mm-asmtp002.mac.com[17.172.108.250]
Apr  7 11:16:07 alex postfix/cleanup[3171]: 243B09A00D: message-id=<2D480632-8197-42F3-AE48-57C85279E92A at me.com>
Apr  7 11:16:07 alex postfix/qmgr[2794]: 243B09A00D: from=<marbetschar at me.com>, size=1318, nrcpt=1 (queue active)
Apr  7 11:16:07 alex postfix/smtp[3205]: fatal: bad network port in destination: [127.0.0.1]:1002466
Apr  7 11:16:07 alex postfix/smtpd[2880]: disconnect from st11p05mm-asmtp002.mac.com[17.172.108.250]
Apr  7 11:16:08 alex postfix/qmgr[2794]: warning: private/smtp-amavis socket: malformed response
Apr  7 11:16:08 alex postfix/qmgr[2794]: warning: transport smtp-amavis failure -- see a previous warning/fatal/panic logfile record for the problem description
Apr  7 11:16:08 alex postfix/master[2790]: warning: process /usr/lib/postfix/smtp pid 3205 exit status 1
Apr  7 11:16:08 alex postfix/master[2790]: warning: /usr/lib/postfix/smtp: bad command startup -- throttling
Apr  7 11:16:08 alex postfix/error[3135]: 243B09A00D: to=<betschart at mandelkind.ch>, relay=none, delay=3.7, delays=2.7/1/0/0, dsn=4.3.0, status=deferred (unknown mail transport error)



Am 07.04.2015 um 11:14 schrieb Marco Betschart <marbetschar at me.com>:

Hi @All

At first I was able to solve the postfix issue - it was simply a matter of adding the right LDAP queries to local_recipient_maps etc.
The mailserver did start working properly yesterday for about 8 hours.

After adding a few more accounts in the Kolab Webadmin things suddenly stopped working. All I can see now is the following in the /var/log/mail.log:

Apr  7 11:08:21 alex postfix/qmgr[2794]: 913B89A004: from=<marbetschar at me.com>, size=1306, nrcpt=1 (queue active)
Apr  7 11:08:21 alex postfix/error[3093]: 913B89A004: to=<betschart at mandelkind.ch>, orig_to=<marco at mandelkind.ch>, relay=none, delay=1167, delays=1167/0/0/0.01, dsn=4.3.0, status=deferred (unknown mail transport error)

Any Ideas?

here’s my
/etc/postfix/main.cf

alias_database = hash:/etc/aliases
alias_maps = hash:/etc/aliases
append_dot_mydomain = no
biff = no
config_directory = /etc/postfix
content_filter = smtp-amavis:[127.0.0.1]:1002466
inet_interfaces = all
inet_protocols = all
local_recipient_maps = ldap:/etc/postfix/ldap/hosted_triplet_local_recipient_maps.cf, ldap:/etc/postfix/ldap/hosted_duplet_local_recipient_maps.cf, ldap:/etc/postfix/ldap/local_recipient_maps.cf
mailbox_size_limit = 0
mydestination = ldap:/etc/postfix/ldap/hosted_triplet_mydestination.cf, ldap:/etc/postfix/ldap/hosted_duplet_mydestination.cf, ldap:/etc/postfix/ldap/mydestination.cf
myhostname = mail.mandelkind.ch
mynetworks = 127.0.0.0/8 [::ffff:127.0.0.0]/104 [::1]/128
myorigin = /etc/mailname
readme_directory = no
recipient_delimiter = +
relayhost =
smtp_tls_security_level = may
smtp_tls_session_cache_database = btree:${data_directory}/smtp_scache
smtpd_banner = $myhostname ESMTP $mail_name
smtpd_recipient_restrictions = permit_mynetworks, reject_unauth_pipelining, reject_rbl_client zen.spamhaus.org, reject_non_fqdn_recipient, reject_invalid_helo_hostname, reject_unknown_recipient_domain, reject_unauth_destination, check_policy_service unix:private/recipient_policy_incoming, permit
smtpd_relay_restrictions = permit_mynetworks permit_sasl_authenticated defer_unauth_destination
smtpd_sasl_auth_enable = yes
smtpd_sender_login_maps = $local_recipient_maps
smtpd_sender_restrictions = permit_mynetworks, check_policy_service unix:private/sender_policy_incoming
smtpd_tls_CAfile = /etc/ssl/DigiCertCA.crt
smtpd_tls_auth_only = yes
smtpd_tls_cert_file = /etc/ssl/ch.mandelkind/wildcard.crt
smtpd_tls_key_file = /etc/ssl/ch.mandelkind/wildcard.key
smtpd_tls_security_level = may
smtpd_tls_session_cache_database = btree:${data_directory}/smtpd_scache
smtpd_use_tls = yes
submission_data_restrictions = check_policy_service unix:private/submission_policy
submission_recipient_restrictions = check_policy_service unix:private/submission_policy, permit_sasl_authenticated, reject
submission_sender_restrictions = reject_non_fqdn_sender, check_policy_service unix:private/submission_policy, permit_sasl_authenticated, reject
transport_maps = hash:/etc/postfix/transport, ldap:/etc/postfix/ldap/hosted_triplet_transport_maps.cf, ldap:/etc/postfix/ldap/hosted_duplet_transport_maps.cf, ldap:/etc/postfix/ldap/transport_maps.cf
virtual_alias_maps = $alias_maps, hash:/etc/postfix/virtual_alias_maps.hash, ldap:/etc/postfix/ldap/hosted_triplet_virtual_alias_maps.cf, ldap:/etc/postfix/ldap/hosted_duplet_virtual_alias_maps.cf, ldap:/etc/postfix/ldap/virtual_alias_maps.cf, ldap:/etc/postfix/ldap/hosted_triplet_virtual_alias_maps_mailforwarding.cf, ldap:/etc/postfix/ldap/hosted_duplet_virtual_alias_maps_mailforwarding.cf, ldap:/etc/postfix/ldap/hosted_triplet_virtual_alias_maps_sharedfolders.cf, ldap:/etc/postfix/ldap/hosted_duplet_virtual_alias_maps_sharedfolders.cf, ldap:/etc/postfix/ldap/hosted_triplet_mailenabled_distgroups.cf, ldap:/etc/postfix/ldap/hosted_duplet_mailenabled_distgroups.cf, ldap:/etc/postfix/ldap/hosted_triplet_mailenabled_dynamic_distgroups.cf, ldap:/etc/postfix/ldap/hosted_duplet_mailenabled_dynamic_distgroups.cf ldap:/etc/postfix/ldap/hosted_triplet_virtual_alias_maps_catchall.cf, ldap:/etc/postfix/ldap/hosted_duplet_virtual_alias_maps_catchall.cf, ldap:/etc/postfix/ldap/virtual_alias_maps_catchall.cf


Am 07.04.2015 um 03:23 schrieb Tobias Crefeld <tclx at klekih-petra.de>:

Am Mon, 06 Apr 2015 15:32:38 -0700 schrieb Thomas Spuhler
<thomas.spuhler at btspuhler.com>:

On Saturday, April 04, 2015 09:37:27 PM Marco Betschart wrote:

A few hours ago I’ve setup a fresh Ubuntu 14.04 Server and
installed the Kolab Community Version on it. I also setup the
Multi-Domain support as described over here
<http://docs.kolab.org/howtos/multi-domain.html>.

Nearly everything works. Only postfix refuses to accept emails from
the internet - and I do not have any clue why!! :( Any help would
be greatly appreciated!!!
[..] 
main.cf
smtpd_banner = $myhostname ESMTP $mail_name
[..]


master.cf
[..]
argv=/usr/lib/postfix/kolab_smtp_access_policy --verify-sender
--verify-recipient
What is your postfix  main.cf?

He posted it before.

-- 
Gruß,
Tobias.

no email, only xmpp: crefeld at xabber.de 
_______________________________________________
users mailing list
users at lists.kolab.org 
https://lists.kolab.org/mailman/listinfo/users

_______________________________________________
users mailing list
users at lists.kolab.org 
https://lists.kolab.org/mailman/listinfo/users

_______________________________________________
users mailing list
users at lists.kolab.org 
https://lists.kolab.org/mailman/listinfo/users
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.kolab.org/pipermail/users/attachments/20150407/a0f8cb44/attachment-0001.html>


More information about the users mailing list