not able to telnet on port 25 for second instances

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

not able to telnet on port 25 for second instances

ahsan2011
The smtp service is not working for other instances of postfix.

It is only running on the main instance. Using a nmap,i found that smtp is
stopped for other service.

I have added this in main.cf

inet_interfaces = smtp-2.xyz, xxx.xxx.xxx.xxx(ip address)

in master.cf, this is added

smtp      inet  n       -       n       -       -       smtpd

[root@smtp-1 postfix]# postmulti -ax postconf config_directory
inet_interfaces
config_directory = /etc/postfix
inet_interfaces = localhost, ip addr0
config_directory = /etc/postfix-1
inet_interfaces = ipaddr 3
config_directory = /etc/postfix-2
inet_interfaces = ip addr 2
config_directory = /etc/postfix-3
inet_interfaces = ip addr 3

I dont smtp service running from postfix-1, postfix-2, postfix-3

Can you please help.

Ahsan





--
Sent from: http://postfix.1071664.n5.nabble.com/Postfix-Users-f2.html
Reply | Threaded
Open this post in threaded view
|

Re: not able to telnet on port 25 for second instances

ahsan2011
[root@smtp-1 postfix]# postconf -n
alias_database = hash:/etc/aliases
alias_maps = hash:/etc/aliases
command_directory = /usr/sbin
config_directory = /etc/postfix
daemon_directory = /usr/libexec/postfix
data_directory = /var/lib/postfix
debug_peer_level = 2
debugger_command = PATH=/bin:/usr/bin:/usr/local/bin:/usr/X11R6/bin ddd
$daemon_directory/$process_name $process_id & sleep 5
html_directory = no
inet_interfaces = localhost, 185.135.9.48
inet_protocols = ipv4
mail_owner = postfix
mailq_path = /usr/bin/mailq.postfix
manpage_directory = /usr/share/man
milter_default_action = accept
multi_instance_directories = /etc/postfix-1 /etc/postfix-2 /etc/postfix-3
multi_instance_enable = yes
multi_instance_wrapper = ${command_directory}/postmulti -p --
mydestination = $myhostname, localhost.$mydomain, localhost
mynetworks = smtp.sendwhile.net
newaliases_path = /usr/bin/newaliases.postfix
non_smtpd_milters = $smtpd_milters
queue_directory = /var/spool/postfix
readme_directory = /usr/share/doc/postfix-2.10.1/README_FILES
sample_directory = /usr/share/doc/postfix-2.10.1/samples
sendmail_path = /usr/sbin/sendmail.postfix
setgid_group = postdrop
smtpd_milters = inet:127.0.0.1:8891
unknown_local_recipient_reject_code = 550




--
Sent from: http://postfix.1071664.n5.nabble.com/Postfix-Users-f2.html
Reply | Threaded
Open this post in threaded view
|

Re: not able to telnet on port 25 for second instances

Wilfried.Essig@Essignetz.de
In reply to this post by ahsan2011
Victor wrote some time ago:
> By default, newly created instances have all "inet" services disabled
> via "master_service_disable".  After your master.cf file matches
> your requirements, you can re-enable them and reload the instance.

And:

>   ##################################
>   ########## INSTANCE CONFIG #######
>   ##################################
>  
>   myhostname = my.example.com
>   mydomain = example.com
>   myorigin = $mydomain
>  
>   # No inet services
>   master_service_disable = inet

Did you (re-)enable inet services on the newly created instances?


Willi


Am 06.05.2018 um 21:47 schrieb ahsan2011:

> The smtp service is not working for other instances of postfix.
>
> It is only running on the main instance. Using a nmap,i found that smtp is
> stopped for other service.
>
> I have added this in main.cf
>
> inet_interfaces = smtp-2.xyz, xxx.xxx.xxx.xxx(ip address)
>
> in master.cf, this is added
>
> smtp      inet  n       -       n       -       -       smtpd
>
> [root@smtp-1 postfix]# postmulti -ax postconf config_directory
> inet_interfaces
> config_directory = /etc/postfix
> inet_interfaces = localhost, ip addr0
> config_directory = /etc/postfix-1
> inet_interfaces = ipaddr 3
> config_directory = /etc/postfix-2
> inet_interfaces = ip addr 2
> config_directory = /etc/postfix-3
> inet_interfaces = ip addr 3
>
> I dont smtp service running from postfix-1, postfix-2, postfix-3
>
> Can you please help.
>
> Ahsan
>
>
>
>
>
> --
> Sent from: http://postfix.1071664.n5.nabble.com/Postfix-Users-f2.html
>
Reply | Threaded
Open this post in threaded view
|

Re: not able to telnet on port 25 for second instances

ahsan2011
Thanks this worked


I put in the below lines and kept this value blank for 2nd , 3rd and 4th
instances.
master_service_disable =





--
Sent from: http://postfix.1071664.n5.nabble.com/Postfix-Users-f2.html