mouss wrote:
> J. Bakshi wrote:
>> mouss wrote:
>>> J. Bakshi wrote:
>>>> J. Bakshi wrote:
>>>>> mouss wrote:
>>>>>  
>>>>>> J. Bakshi wrote:
>>>>>>   
>>>>>>> Dear list,
>>>>>>>
>>>>>>> I get an error like  "postfix/master[18801]: fatal:
>>>>>>> 127.0.0.1:smtps:
>>>>>>> Servname not supported for ai_socktype"
>>>>>>> below is my main.cf of postfix. Could any one give me a clue ?
>>>>>>>
>>>>>>>       
>>>>>> what does
>>>>>> # grep smtps /etc/services
>>>>>> return?
>>>>>>
>>>>>>     
>>>>> Good morning mouss,
>>>>> Thanks for your kind reply.
>>>>> Here is "grep smtps /etc/services" of my server
>>>>>
>>>>>
>>>>>   
>>>> Sorry for my previous *incomplete* post but it was sent by mistake.
>>>> The /etc/services didn't have any smtps entry. 
>>> that was it. postfix couldn't know what port to use for smtps (ports
>>> are not hardcoded).
>>>
>>>> Hence I added as below
>>>>
>>>> ~~~~~~~~~~~~~~~~~~~~~~~~~~~
>>>> #smtps           465/tcp    # eMail Server
>>>> smtps   465/tcp
>>>> ~~~~~~~~~~~~~~~~~````~~``
>>>>
>>>> Now I don't have the "smtps:,Servname not supported for ai_socktype"
>>>> error :-)
>>>> but when using smtps I got can't connect to smtp server :-(
>>> what do you mean? you can't connect to smtps? please be explicit and
>>> describe exactly what is happening.
>>>
>>>> I'm looking into it so that I can collect the error messages from log.
>>>> In between if you give me any hints it would be really helpful.
>>>> Onece I
>>>> check and collect logs I'll come back to the list.
>>>>
>>> - restart postfix
>>> - check that postfix is listening on port 465. use netstat, lsof, ...
>>> - check that no firewall prevents access
>>> - check postfix logs
>>> - read
>>>     http://www.postfix.org/TLS_README.html
>>>
>>>
>>>
>> Hello mouss,
>>
>> I have done some testing on my mail server and I'm afraid to say you
>> that I am still suffering with my email server :-(
>> The system is based on postfix+dovecot+mysql.
>>
>> I don't have any firewall running here. I have restarted postfix and
>> dovecot.
>> Now have a look at my ports
>>
>> # netstat -nat
>> Active Internet connections (servers and established)
>> Proto Recv-Q Send-Q Local Address           Foreign Address        
>> State
>> tcp        0      0 0.0.0.0:993             0.0.0.0:*              
>> LISTEN
>> tcp        0      0 0.0.0.0:995             0.0.0.0:*              
>> LISTEN
>> tcp        0      0 0.0.0.0:47015           0.0.0.0:*              
>> LISTEN
>> tcp        0      0 0.0.0.0:3306            0.0.0.0:*              
>> LISTEN
>> tcp        0      0 0.0.0.0:110             0.0.0.0:*              
>> LISTEN
>> tcp        0      0 0.0.0.0:143             0.0.0.0:*              
>> LISTEN
>> tcp        0      0 0.0.0.0:111             0.0.0.0:*              
>> LISTEN
>> tcp        0      0 127.0.0.1:465           0.0.0.0:*              
>> LISTEN
>
> listening on 127.0.0.1. only reachable from inside the box. remove
> inet_interfaces=localhost and restart your postfix.
>
> but where is 25? you should enable these (remove the '#' in the
> beginning of the lines)
>
> #smtp      inet  n       -       n       -       -       smtpd
> #submission inet n      -       n       -       -       smtpd
> #       -o smtpd_etrn_restrictions=reject
> #       -o smtpd_client_restrictions=permit_sasl_authenticated,reject
>
> in master.cf. The first is the standard smtp service (port 25). The
> second is the standard submission service (port 587).
>
>> tcp        0      0 :::47015                :::*                   
>> LISTEN
>> tcp        0      0 :::80
>>
>>
>> When I send email through sendmail directly from the server no problem.
>> But If I configure thunderbird to use smtps the client reports it can't
>> connect with the server.
>
> you said Thunderbird? Then why do you use smtps? TB supports the
> standard (smtps is not): it can use STARTTLS (click on "TLS", not SSL
> in TB).
>
>> I have rechecked everything and there is no
>> problem in the thunderbird setting. If I use smtp rather than smtps I
>> can send mail . More over the mail server is not receiving any mail
>> too :-(
>> I have checked the log files mail; mail.inoi; mail.err; mail.warn but
>> there is no such error log or any message which which provide even a
>> single clue :-(
>>
>> hare is again my  "pstconf -n"
>>
>> inet_interfaces = localhost
>
> There it it is. remove this.
>
> more generally, remove all settings that you can't prove you need them.
>
>>
>>
>
>


Hello mouss,

Thanks for your kind help. I am now in a position to give you some
really good news. When I was looking close to my logs and got the error
"can not connect to port 25" then your mail arrived and enlighten me.

I have modified my main.cf as below
#inet_interfaces = localhost

then the master.cf 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 smtpd_sasl_auth_enable

The good news is after restarting the postfix the mail server is
collecting the emails from the net.

The unsolved one is smtps is still not working. I have tried the either
way too as you suggested to use TLS but both the cases it says can't
connect to the smtp server.

The mail.warn log provides a message
postfix/master[1912]: warning: /usr/lib/postfix/smtpd: bad command
startup -- throttling

with regards,

-- 
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
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