sendmail stopped working

Discussion in 'Server Operation' started by v2k, May 11, 2008.

  1. v2k

    v2k New Member

    running fc7.

    from the logs /var/log/maillog : Connection refused by [127.0.0.1]

    Code:
    telnet localhost 25 
    fails to connect

    iptables:
    Code:
     /etc/init.d/iptables status
    Table: filter
    Chain INPUT (policy ACCEPT)
    num  target     prot opt source               destination
    1    RH-Firewall-1-INPUT  all  --  0.0.0.0/0            0.0.0.0/0
    
    Chain FORWARD (policy ACCEPT)
    num  target     prot opt source               destination
    1    REJECT     all  --  0.0.0.0/0            0.0.0.0/0           reject-with icmp-host-prohibited
    
    Chain OUTPUT (policy ACCEPT)
    num  target     prot opt source               destination
    
    Chain RH-Firewall-1-INPUT (1 references)
    num  target     prot opt source               destination
    1    ACCEPT     all  --  0.0.0.0/0            0.0.0.0/0
    2    ACCEPT     icmp --  0.0.0.0/0            0.0.0.0/0           icmp type 255
    3    ACCEPT     esp  --  0.0.0.0/0            0.0.0.0/0
    4    ACCEPT     ah   --  0.0.0.0/0            0.0.0.0/0
    5    DROP       udp  --  0.0.0.0/0            224.0.0.251         udp dpt:5353
    6    DROP       udp  --  0.0.0.0/0            0.0.0.0/0           udp dpt:631
    7    DROP       tcp  --  0.0.0.0/0            0.0.0.0/0           tcp dpt:631
    8    ACCEPT     all  --  0.0.0.0/0            0.0.0.0/0           state RELATED,ESTABLISHED
    9    ACCEPT     tcp  --  0.0.0.0/0            0.0.0.0/0           state NEW tcp dpt:22
    10   DROP       tcp  --  0.0.0.0/0            0.0.0.0/0           state NEW tcp dpt:25
    11   DROP       tcp  --  0.0.0.0/0            0.0.0.0/0           tcp dpt:110
    12   ACCEPT     tcp  --  0.0.0.0/0            0.0.0.0/0           state NEW tcp dpt:80
    13   REJECT     all  --  0.0.0.0/0            0.0.0.0/0           reject-with icmp-host-prohibited
    
     
  2. v2k

    v2k New Member

    changing
    Code:
    10   DROP       tcp  --  0.0.0.0/0            0.0.0.0/0           state NEW tcp dpt:25
    to accept on 25 doesn't help... turning off iptables doesnt allow me to telnet to localhost on 25 either.
     
  3. v2k

    v2k New Member

    hosts.allow contains:
    ALL:127.0.0.1

    and hosts.deny contains:
    ALL: ALL EXCEPT localhost
     
  4. v2k

    v2k New Member

    This ended up fixing it:
    Code:
     /etc/init.d/postfix start
    Any idea why this didn't do it itself on startup -- or perhaps it stopped at some time and needed to be restarted?
     
  5. chipsafts

    chipsafts New Member

    postfix is not sendmail
     
  6. v2k

    v2k New Member

    sendmail wasn't working and this fixed it.
     

Share This Page