Hello!
Thank you for your advice. However it still not works. In this link
https://moln.irf.se/owncloud/public.php?service=files&t=a998ef1f04eee014ad3de67a83b4d45b I have the conf-parameters that I set and below there is some text from the log-file where you can see that it ends in the deferred
queue.
The sending user gets "Undeliverable" (with 550 code) mail back but
keeps getting it because the message ends in the deferring queue all
the time.
When I use relayhost=[mail.irf.se]:XXXXX (and comment away
transport_maps) it works and the message bounce in a correct way.
However I don't want every message to go to that smtp-host only
irf.se-domain as I pointed out before.
I'm using sasl-authentication and the configuration in the master-file
is as following:
-----------------------master.cf-------------------------------------
smtp inet n - - - - smtpd -o
smtpd_enforce_tls=yes -o smtpd_sasl_auth_enable=yes -o
syslog_name=postfix/smtp -o
smtpd_relay_restrictions=permit_sasl_authenticated,reject_unauth_destination,reject_unlisted_recipient
-v
submission inet n - - - - smtpd -o
smtpd_enforce_tls=yes -o smtpd_sasl_auth_enable=yes -o
syslog_name=postfix/submission -o
smtpd_relay_restrictions=permit_sasl_authenticated,reject_unauth_destination,reject_unlisted_recipient
-v
smtps inet n - - - - smtpd -o
smtpd_tls_wrappermode=yes -o smtpd_sasl_auth_enable=yes -o
syslog_name=postfix/smtps -o
smtpd_relay_restrictions=permit_sasl_authenticated,reject_unauth_destination,reject_unlisted_recipient
-v
------------------LOG file--------------------------------------------
mailinfo.log:2015-02-13T16:31:46+02:00 outgoingmail-2
postfix/smtps/smtpd[7435]: extract_addr: in:
<testarenadresssomintefi...@telia.com>, result:
testarenadresssomintefi...@telia.com
mailinfo.log:2015-02-13T16:31:46+02:00 outgoingmail-2
postfix/smtps/smtpd[7435]: ctable_locate: leave existing entry key
testarenadresssomintefi...@telia.com
mailinfo.log:2015-02-13T16:31:46+02:00 outgoingmail-2
postfix/smtps/smtpd[7435]: maps_find: recipient_canonical_maps:
testarenadresssomintefi...@telia.com: not found
mailinfo.log:2015-02-13T16:31:46+02:00 outgoingmail-2
postfix/smtps/smtpd[7435]: mail_addr_find:
testarenadresssomintefi...@telia.com -> (not found)
mailinfo.log:2015-02-13T16:31:46+02:00 outgoingmail-2
postfix/smtps/smtpd[7435]: maps_find: canonical_maps:
testarenadresssomintefi...@telia.com: not found
mailinfo.log:2015-02-13T16:31:46+02:00 outgoingmail-2
postfix/smtps/smtpd[7435]: mail_addr_find:
testarenadresssomintefi...@telia.com -> (not found)
mailinfo.log:2015-02-13T16:31:46+02:00 outgoingmail-2
postfix/smtps/smtpd[7435]: maps_find: virtual_alias_maps:
testarenadresssomintefi...@telia.com: not found
mailinfo.log:2015-02-13T16:31:46+02:00 outgoingmail-2
postfix/smtps/smtpd[7435]: mail_addr_find:
testarenadresssomintefi...@telia.com -> (not found)
mailinfo.log:2015-02-13T16:31:52+02:00 outgoingmail-2
postfix/smtp[7438]: EF63DBD1E:
to=<testarenadresssomintefi...@telia.com>,
relay=mail.telia.com[62.20.233.128]:25, delay=5.4,
delays=0.01/0.01/0.31/5.1, dsn=4.3.0, status=deferred (bounce or trace
service failure)
/Regards Mats
Quoting Viktor Dukhovni <postfix-us...@dukhovni.org>:
On Fri, Feb 13, 2015 at 03:50:14PM +0100, Mats Luspa wrote:
I'm using the transport_maps-option and have no value on relayhost.
The transport-map has the following information:
irf.se smtp:[mail.irf.se]:XXXXX
* smtp:
It generally makes more sense to simply set
mydestination =
alias_maps =
alias_database =
local_transport = error:5.1.2 Mailbox unavailable
at which point all domains not listed in virtual_mailbox_domains
(empty by default) are delivered via SMTP anyway, and the "*" in
the transport table becomes unnecessary, just the "irf.se" entry
is enough.
It works well for mail-addresses that exists. However when I send mail
to a non-existing mail address it is only deferred when it should be
rejected.
# Revert to default (delete from main.cf) or set explicitly to:
#
soft_bounce = no
For more help:
http://www.postfix.org/DEBUG_README.html#mail
--
Viktor.