I just installed SuSE 9.0 with Postfix and am trying to test connectivity by telneting to port 25 and get a connection refused. Scanning the box with NMAP shows port 25 closed. If I telnet to localhost on port 25 from the box I connect with the mail system prompt. I tried running the firewall tool in yast2 to allow SMTP but still no luck. Does anyone know where to check to see where I can open this port? Thanks, Eric
I just installed SuSE 9.0 with Postfix and am trying to test connectivity by telneting to port 25 and get a connection refused.
Look at /etc/sysconfig/mail -> SMTPD_LISTEN_REMOTE Markus -- __________________ /"\ Markus Gaugusch \ / ASCII Ribbon Campaign markus(at)gaugusch.at X Against HTML Mail / \
Okay I have SMTPD_LISTEN_REMOTE="yes" in the /etc/sysconfig/mail and I edited the main.cf to include the inet_interfaces = all I reloaded and restarted postfix and still nothing. One thing I noticed is that SuSE has the following *.cf files. main.cf main.cf.SuSEconfig main.cf.default Any more ideas?? Thanks, Eric Markus Gaugusch wrote:
I just installed SuSE 9.0 with Postfix and am trying to test connectivity by telneting to port 25 and get a connection refused.
Look at /etc/sysconfig/mail -> SMTPD_LISTEN_REMOTE
Markus
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Eric Kahklen wrote: | I just installed SuSE 9.0 with Postfix and am trying to test | connectivity by telneting to port 25 and get a connection refused. | Scanning the box with NMAP shows port 25 closed. If I telnet to | localhost on port 25 from the box I connect with the mail system | prompt. I tried running the firewall tool in yast2 to allow SMTP | but still no luck. Does anyone know where to check to see where I | can open this port? | | | Thanks, | | Eric | In /etc/postfix/main.cf: inet_interfaces = all and then: /usr/sbin/postfix reload - -- Boris B. Zhmurov DialogueScience, Inc. Technical department. 40 Vavilova St., Moscow, 119991, Russia Tel.: (+7-095) 137-0150, 135-6253 HTTP://www.antivir.ru FTP://ftp.antivir.ru "wget http://bb.dials.ru/bb_public_key.pgp -O - | gpg --import" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.2 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFAJ8Q+mEQixi5w37YRAlmbAJ9Wyn4PX0zdz7JbzrLB9ZO+Vke7fgCeLvS2 JzxV42FzwCQkVmCM/V+Lln8= =camA -----END PGP SIGNATURE-----
I fixed it! I found in the main.cf file that there are two places with the inet_interfaces = specification. I don't know if yast2 put them there when I ran it for mail, or if this is standard. I sure hope not since this could be very confusing!!! Eric Boris B. Zhmurov wrote:
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
Eric Kahklen wrote:
| I just installed SuSE 9.0 with Postfix and am trying to test | connectivity by telneting to port 25 and get a connection refused. | Scanning the box with NMAP shows port 25 closed. If I telnet to | localhost on port 25 from the box I connect with the mail system | prompt. I tried running the firewall tool in yast2 to allow SMTP | but still no luck. Does anyone know where to check to see where I | can open this port? | | | Thanks, | | Eric |
In /etc/postfix/main.cf: inet_interfaces = all
and then: /usr/sbin/postfix reload
- -- Boris B. Zhmurov DialogueScience, Inc. Technical department. 40 Vavilova St., Moscow, 119991, Russia Tel.: (+7-095) 137-0150, 135-6253 HTTP://www.antivir.ru FTP://ftp.antivir.ru "wget http://bb.dials.ru/bb_public_key.pgp -O - | gpg --import"
-----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.2 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD8DBQFAJ8Q+mEQixi5w37YRAlmbAJ9Wyn4PX0zdz7JbzrLB9ZO+Vke7fgCeLvS2 JzxV42FzwCQkVmCM/V+Lln8= =camA -----END PGP SIGNATURE-----
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Eric Kahklen wrote: | I fixed it! I found in the main.cf file that there are two places with | the inet_interfaces = specification. I don't know if yast2 put them | there when I ran it for mail, or if this is standard. I sure hope not | since this could be very confusing!!! | | Eric Yep, yast doesn't edit original parameter's, it add another one in the end of main.cf. Any way, you can check postfix's configuration by typing command: /usr/sbin/postconf -n - -- Boris B. Zhmurov DialogueScience, Inc. Technical department. 40 Vavilova St., Moscow, 119991, Russia Tel.: (+7-095) 137-0150, 135-6253 HTTP://www.antivir.ru FTP://ftp.antivir.ru "wget http://bb.dials.ru/bb_public_key.pgp -O - | gpg --import" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.2 (GNU/Linux) iD8DBQFAJ96vmEQixi5w37YRAssBAJ9QqFjGcfwctIdzStI/N9SXWbwVYQCfcR1h wksbFnuFp7TwR+evcK1LhMQ= =tIyc -----END PGP SIGNATURE-----
* Boris B. Zhmurov; <bb@antivir.ru> on 09 Feb, 2004 wrote:
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
Eric Kahklen wrote: | I fixed it! I found in the main.cf file that there are two places with | the inet_interfaces = specification. I don't know if yast2 put them | there when I ran it for mail, or if this is standard. I sure hope not | since this could be very confusing!!! | | Eric
Yep, yast doesn't edit original parameter's, it add another one in the end of main.cf. Any way, you can check postfix's configuration by typing command:
however if you read /etc/sysconfig/postfix and add your customization like POSTFIX_ADD_RELAY_RECIPIENT_MAPS="hash:/etc/postfix/relay_recipient_maps" POSTFIX_ADD_RECIPIENT_DELIMITER="-" POSTFIX_ADD_SHOW_USER_UNKNOWN_TABLE_NAME="no" You can run SuSEConfig --module postfix and everything will be as you want and you would still be using the SuSEconfig without worrying what will happen when SuSEConfig runs and destroys my changes :-) -- Togan Muftuoglu | Unofficial SuSE FAQ Maintainer | Please reply to the list; http://susefaq.sf.net | Please don't put me in TO/CC. Nisi defectum, haud refiecendum
On Monday 09 February 2004 20:34, Togan Muftuoglu wrote:
You can run SuSEConfig --module postfix and everything will be as you want and you would still be using the SuSEconfig without worrying what will happen when SuSEConfig runs and destroys my changes :-)
Or if your changes to the configuration are too numerous, you can also switch off the generation of the Postfix configuration by SuSEconfig if you set MAIL_CREATE_CONFIG="no" in /etc/sysconfig/mail. Works for me... Best regards, Arjen
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Togan Muftuoglu wrote: | You can run SuSEConfig --module postfix and everything will be as you | want and you would still be using the SuSEconfig without worrying what | will happen when SuSEConfig runs and destroys my changes :-) I'm not worrying, because i'm using "chattr +i" on my config's :)) - -- Boris B. Zhmurov DialogueScience, Inc. Technical department. 40 Vavilova St., Moscow, 119991, Russia Tel.: (+7-095) 137-0150, 135-6253 HTTP://www.antivir.ru FTP://ftp.antivir.ru "wget http://bb.dials.ru/bb_public_key.pgp -O - | gpg --import" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.2 (GNU/Linux) iD8DBQFAJ+3mmEQixi5w37YRAp5AAJ9nzzL+r0lLvS1sUWSsRD51hgG7YACglh2j DniE4sj5c3xbgE+br+9t/NI= =TY1L -----END PGP SIGNATURE-----
Quoting Eric Kahklen <eric@kahklen.com>:
I just installed SuSE 9.0 with Postfix and am trying to test connectivity by telneting to port 25 and get a connection refused. Scanning the box with NMAP shows port 25 closed. If I telnet to localhost on port 25 from the box I connect with the mail system prompt. I tried running the firewall tool in yast2 to allow SMTP but still no luck. Does anyone know where to check to see where I can open this port?
lsof is your friend. Run 'lsof | grep LISTEN' as root, and you'll see something like: sshd 1246 root 5u IPv6 2859 TCP *:ssh (LISTEN) master 1760 root 11u IPv4 4292 TCP localhost:smtp (LISTEN) You'll notice that sshd is listening for any address, but master (postfix's process) is only listening to localhost. Thus, regardless of the firewall settings, postfix won't listen to anyone coming from outside. Others have pointed out where to fix this in postfix's configuration, but I thought I'd chime in on how you can tell where the problem is, in case you run into this type of thing in the future.
Dear listeners, Am Montag, 9. Februar 2004 18:27 schrieb Eric Kahklen:
I just installed SuSE 9.0 with Postfix and am trying to test connectivity by telneting to port 25 and get a connection refused. Scanning the box with NMAP shows port 25 closed. If I telnet to localhost on port 25 from the box I connect with the mail system prompt. Maybe you have to insert your doamin into the /etc/postfix/main.cf f.e.: mynetworks = 127.0.0.0/8, 192.168.1.0/24
Peace & Luck Stefan
participants (7)
-
Arjen de Korte
-
Boris B. Zhmurov
-
Eric Kahklen
-
Markus Gaugusch
-
Stefan Nitz
-
suse@rio.vg
-
Togan Muftuoglu