mouss wrote:
> J. Bakshi wrote:
>> [snip]
>> yes, after flipping through the logs I have discovered an error
>>
>> fatal: unexpected command-line argument: smtpd_sasl_auth_enable=yes
>>
>
> This is what Brain told you. you have the wrong syntax in master.cf.
>
>> But with TLS I hv no problem to send mail  ( no error ); thogh those
>> mail has never reached the destination.
>>
>
> The error is in your master.cf. all options must have a "-o".
>
>
Hi mouss,

Thanks for your guidance.

I have modified my main.cf according to the suggestion. It is as below

smtp      inet  n       -       n       -       -       smtpd
#submission inet n      -       n       -       -       smtpd
#  -o smtpd_etrn_restrictions=reject
#  -o smtpd_client_restrictions=permit_sasl_authenticated,reject
smtps    inet  n       -       n       -       -       smtpd
   -o smtpd_tls_wrappermode=yes
  -o smtpd_sasl_auth_enable=yes

and here is my main.cf tls section

############################
#   TLS  setting ###########
############################

#smtp_sasl_auth_enable = yes
smtp_use_tls = yes
#smtpd_client_restrictions =
#smtpd_helo_required = no
#smtpd_helo_restrictions =
smtpd_sasl_auth_enable=yes
smtpd_recipient_restrictions =
permit_mynetworks,permit_sasl_authenticated,reject_unauth_destination
smtpd_sasl_path = private/auth
#relay_domains = opendingo.de
smtpd_sasl_type = dovecot
#smtpd_sender_restrictions = hash:/etc/postfix/access
smtpd_tls_auth_only = yes
smtpd_tls_cert_file = /etc/ssl/certs/postfix.pem
smtpd_tls_key_file = /etc/ssl/private/postfix.pem
smtpd_use_tls = yes
strict_8bitmime = no
strict_rfc821_envelopes = no
#transport_maps = hash:/etc/postfix/transport
unknown_local_recipient_reject_code = 550
#########################################

And now both email sending and receiving is working.
Thanks a lot to you and Brain for enlighten me and make me able to fix
the problems.
With many thanks.

-- 
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Joydeep Bakshi, Linux System Admin
Kolkatainfoservices Pvt Ltd,
23A Royd Street, Kolkata 700016, India
Work Phone 91 033 40014784
http://infoservices.in/
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Reply via email to