Loading ...
Sorry, an error occurred while loading the content.

291068Re: 25-th port is not opened

Expand Messages
  • /dev/rob0
    Feb 1, 2013
    • 0 Attachment
      On Sat, Feb 02, 2013 at 08:00:28AM +0400, arsen.shnurkov wrote:
      > When I try to start, it writes "ok":
      >
      > | # /etc/init.d/postfix start
      > * Starting postfix ... [ ok ]

      That's the distro's init script. See what you get with "postfix -v
      start". (But you'll probably need to use the init script in general;
      consult your distributor's documentation for their Postfix package.)

      > but 25-th port is not opened:
      >
      > |# ss -4l
      > State Recv-Q Send-Q Local Address:Port Peer Address:Port
      > LISTEN 0 50 127.0.0.1:mysql *:*
      > LISTEN 0 128 *:pop3 *:*
      > LISTEN 0 128 *:imap *:*
      > LISTEN 0 128 *:http *:*
      > LISTEN 0 128 *:ssh *:*
      > LISTEN 0 128 *:https *:*
      > |
      >
      > |I allowed all interfaces:
      >
      > # postconf -n | grep inet
      > inet_interfaces = all
      > inet_protocols = ipv4
      > |
      >
      > # grep «smtp» /etc/postfix/master.cf
      >
      > |smtp inet n - n - - smtpd -v
      ^
      1. Is this pipe character really there? It should not be.
      2. You do NOT want verbose logs. Remove the -v.

      > smtp unix - - n - - smtp
      > relay unix - - n - - smtp
      > -o smtp_fallback_relay=
      > |
      >
      > Logs are empty, here is my syslog-ng setup:

      This is what you must fix first.

      > |# grep "mail" /etc/syslog-ng/syslog-ng.conf | grep -v "#"
      > destination mail { file("/var/log/mail/mail.log"); };

      Looks like /var/log/mail/mail.log is the file that should have your
      mail.* syslog facility.priority logs. Did you delete it? Try
      restarting the syslogd.

      > destination mailinfo { file("/var/log/mail/mail.info"); };
      > destination mailwarn { file("/var/log/mail/mail.warn"); };
      > destination mailerr { file("/var/log/mail/mail.err"); };
      > filter f_mail { facility(mail); };
      > log { source(src); filter(f_mail); destination(mail); };
      > log { source(src); filter(f_mail); filter(f_info); destination(mailinfo); };
      > log { source(src); filter(f_mail); filter(f_warn); destination(mailwarn); };
      > log { source(src); filter(f_mail); filter(f_err); destination(mailerr); };
      > |
      >
      > my /etc/postfix/main.cf contains following:
      >
      > |# grep "my" /etc/postfix/main.cf

      "postconf -n" is strongly preferred here.

      > virtual_mailbox_domains=mysql:/etc/postfix/mysql/mysql-virtual-domains.cf
      > virtual_mailbox_maps = mysql:/etc/postfix/mysql/mysql-virtual-maps.cf
      > virtual_uid_maps = mysql:/etc/postfix/mysql/mysql-virtual-uid.cf
      > virtual_gid_maps = mysql:/etc/postfix/mysql/mysql-virtual-gid.cf
      > myhostname = mydomain.ru
      > mydomain = mydomain.ru
      > mydestination = localhost
      > mynetworks = 192.168.9.0/24, 192.168.8.0/24, 192.168.7.0/24, 192.168.6.0/24, 127.0.0.0/8
      > |
      >
      > What I should check in the first place?

      Until you get the logs working there is little else we can say here.
      --
      http://rob0.nodns4.us/ -- system administration and consulting
      Offlist GMX mail is seen only if "/dev/rob0" is in the Subject:
    • Show all 9 messages in this topic