Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Maybe you should hide/mask your public ips (and mail addresses) on a forum, especially if running mail servers, we never know
So the postfix configuration directory for the 2nd server is /etc/postfix-xx.xxx.162.12
How did you start the 2nd server, like this?
postfix -c /etc/postfix-xx.xxx.162.12
when i install the postfix by using yum install postfix
then its automatically postfix directory created in /etc/postfix and next i changed the some information in main.cf and master.cf
like this
myhostname = host.xxxxxxx.com
mydomain = xxxxx.com
myorigin = $mydomain
inet_interfaces = xxxxxx.com
mydestination = $myhostname, localhost.$mydomain, localhost, $mydomain
mynetworks = xx.xx.xx.96/28, 127.0.0.0/8
in master.cf
xx.xx.xx.96:2525 inet n - n - - smtpd
after that
cp -rp /etc/postfix /etc/postfix-xx.xx.xx.12
then another one folder(postfix-xx.xx.xx.12) are created in /etc
then i changed information in main.cf and master.cf
But /etc/postfix2 exists?
Did you try: postfix -c /etc/postfix-xx.xx.xx.12
Also did you try disabling the firewall just the time to test telnet info.x.x 2525
EDIT: sorry, I [Newbie] didn't see all the new posts when I wrote this,
so this may ALL be irrelevant.
Quote:
postfix/postfix-script: the Postfix mail system is running: PID: 19218
tcp 0 0 xx:xx:xx:xx:2525 0.0.0.0:* LISTEN 19218/master
In master.cf file
xx.xx.xx.96:2525 inet n - n - - smtpd
Why is the first (...96) 'using' port 2525? Mistake?
(yet it responds to port 25) (try telnet ...12 25)
**I don't know postfix, so I don't know how master.cf works.
There also MIGHT be a basic netmask issue: (again, I'm not sure)
ifconfig says 255.255.255.0 which is not /28 (in postfix configS)
Post netstat -rn; netstat -nlp | grep 25
In addition to the [extreme] debugging technique of strace,
I'm wondering if there is a way to 'trace' the relevant net pkts...
(I assume all the telnet cmds are being run on the [postfix server] host itself...)
Now, nothing appears to be listening on 2525!
Check ( with ps -ax) to see that the second is running.
Then use strace -p ... to see what it's doing.
Can you try running *only* the second one (without the 1st running) & telnet to it
(both 25 and 2525)...
(I'm not sure how to tell if the netmask might be a problem; hopefully another LQ'er can comment on this. i.e., is the mynetworks.../28 ok?
Also, shouldn't the 1st's master.cf have 25, not 2525?)
By any chance, did you actually want/need all three eth0 to be /28?
here is the status
postfix/postfix-script: the Postfix mail system is running: PID: 10860
postfix-xx.xx.xx.12/postfix-script: the Postfix mail system is running: PID: 10943
i think this is port issues because in netstat -nlp| grep 25 its showing only one ip address port
i.e first ip address
second one is not showing
can you please tell me how to enable the port on selective ip address
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.