SMTP passthrough

Issues related to configuring your network
Post Reply
TasMot
Posts: 2
Joined: 2017/11/09 00:25:34

SMTP passthrough

Post by TasMot » 2017/11/09 00:32:14

I am using a CentOS 6 VPS from VPSCHEAP. Until yesterday my email was passing through the VPS over an OpenVPN to my onsite firewall (VPN terminator), SPAM filter and Exchange server. All of a sudden it won't pass through! If I PUTTY into the VPS machine and use Telnet to my email (and send myself an email), it works. However from outside, nothing. Here is the output of "service --status-all". Can anybody tell me what I need to change to make it start working again?

crond (pid 675) is running...
htcacheclean is stopped
httpd (pid 662) is running...
Table: filter
Chain INPUT (policy ACCEPT)
num target prot opt source destination
1 ACCEPT all ::/0 ::/0

Chain FORWARD (policy ACCEPT)
num target prot opt source destination
1 ACCEPT all ::/0 ::/0

Chain OUTPUT (policy ACCEPT)
num target prot opt source destination

Table: mangle
Chain PREROUTING (policy ACCEPT)
num target prot opt source destination

Chain INPUT (policy ACCEPT)
num target prot opt source destination

Chain FORWARD (policy ACCEPT)
num target prot opt source destination

Chain OUTPUT (policy ACCEPT)
num target prot opt source destination

Chain POSTROUTING (policy ACCEPT)
num target prot opt source destination

Table: raw
Chain PREROUTING (policy ACCEPT)
num target prot opt source destination

Chain OUTPUT (policy ACCEPT)
num target prot opt source destination

Table: filter
Chain INPUT (policy DROP)
num target prot opt source destination
1 ACCEPT all -- 0.0.0.0/0 0.0.0.0/0 state RELATED,ESTABLISHED
2 ACCEPT all -- 0.0.0.0/0 0.0.0.0/0
3 ACCEPT tcp -- 0.0.0.0/0 0.0.0.0/0 tcp flags:0x10/0x10
4 ACCEPT all -- 0.0.0.0/0 0.0.0.0/0 state ESTABLISHED
5 ACCEPT all -- 0.0.0.0/0 0.0.0.0/0 state RELATED
6 ACCEPT udp -- 0.0.0.0/0 0.0.0.0/0 udp spt:53 dpts:1024:65535
7 ACCEPT icmp -- 0.0.0.0/0 0.0.0.0/0 icmp type 0
8 ACCEPT icmp -- 0.0.0.0/0 0.0.0.0/0 icmp type 3
9 ACCEPT icmp -- 0.0.0.0/0 0.0.0.0/0 icmp type 4
10 ACCEPT icmp -- 0.0.0.0/0 0.0.0.0/0 icmp type 11
11 ACCEPT icmp -- 0.0.0.0/0 0.0.0.0/0 icmp type 12
12 ACCEPT tcp -- 0.0.0.0/0 0.0.0.0/0 tcp dpt:11194
13 ACCEPT tcp -- 0.0.0.0/0 0.0.0.0/0 tcp dpt:10000
14 ACCEPT udp -- 0.0.0.0/0 0.0.0.0/0 udp dpt:1194
15 ACCEPT tcp -- 0.0.0.0/0 0.0.0.0/0 tcp dpt:587
16 ACCEPT tcp -- 0.0.0.0/0 0.0.0.0/0 tcp dpt:443
17 ACCEPT tcp -- 0.0.0.0/0 0.0.0.0/0 tcp dpt:25
18 ACCEPT tcp -- 0.0.0.0/0 0.0.0.0/0 tcp dpt:22
19 ACCEPT tcp -- 0.0.0.0/0 0.0.0.0/0 tcp dpt:113
20 ACCEPT icmp -- 10.20.88.0/24 0.0.0.0/0
21 ACCEPT icmp -- 0.0.0.0/0 0.0.0.0/0 icmp type 8
22 ACCEPT tcp -- 0.0.0.0/0 0.0.0.0/0 tcp dpts:1024:65535
23 ACCEPT all -- 0.0.0.0/0 10.20.88.0/24
24 DROP tcp -- 0.0.0.0/0 0.0.0.0/0 tcp dpts:2049:2050
25 DROP tcp -- 0.0.0.0/0 0.0.0.0/0 tcp dpts:7000:7010
26 DROP tcp -- 0.0.0.0/0 0.0.0.0/0 tcp dpts:6000:6063
27 DROP tcp -- 0.0.0.0/0 0.0.0.0/0 tcp flags:0x3F/0x00
28 DROP tcp -- 0.0.0.0/0 0.0.0.0/0 tcp flags:0x3F/0x00
29 DROP tcp -- 0.0.0.0/0 0.0.0.0/0 tcp flags:!0x17/0x02 state NEW
30 DROP tcp -- 0.0.0.0/0 0.0.0.0/0 tcp flags:0x3F/0x3F
31 ACCEPT tcp -- 0.0.0.0/0 0.0.0.0/0 tcp dpt:25 ctstate NEW,ESTABLISHED

Chain FORWARD (policy ACCEPT)
num target prot opt source destination
1 ACCEPT tcp -- 0.0.0.0/0 0.0.0.0/0 tcp dpt:443 flags:0x17/0x02 ctstate NEW
2 ACCEPT tcp -- 0.0.0.0/0 0.0.0.0/0 tcp dpt:25 flags:0x17/0x02 ctstate NEW
3 ACCEPT all -- 0.0.0.0/0 0.0.0.0/0 ctstate RELATED,ESTABLISHED
4 ACCEPT all -- 0.0.0.0/0 0.0.0.0/0 ctstate RELATED,ESTABLISHED

Chain OUTPUT (policy ACCEPT)
num target prot opt source destination
1 ACCEPT tcp -- 0.0.0.0/0 0.0.0.0/0 tcp spt:25 ctstate ESTABLISHED

Table: mangle
Chain PREROUTING (policy ACCEPT)
num target prot opt source destination

Chain INPUT (policy ACCEPT)
num target prot opt source destination

Chain FORWARD (policy ACCEPT)
num target prot opt source destination

Chain OUTPUT (policy ACCEPT)
num target prot opt source destination

Chain POSTROUTING (policy ACCEPT)
num target prot opt source destination

Table: nat
Chain PREROUTING (policy ACCEPT)
num target prot opt source destination
1 DNAT tcp -- 0.0.0.0/0 0.0.0.0/0 tcp dpt:5272 to:10.20.88.2
2 DNAT tcp -- 0.0.0.0/0 0.0.0.0/0 tcp dpt:995 to:10.20.88.4
3 DNAT tcp -- 0.0.0.0/0 0.0.0.0/0 tcp dpt:587 to:10.20.88.2
4 DNAT tcp -- 0.0.0.0/0 0.0.0.0/0 tcp dpt:465 to:10.20.88.2
5 DNAT tcp -- 0.0.0.0/0 0.0.0.0/0 tcp dpt:443 to:10.20.88.2
6 DNAT tcp -- 0.0.0.0/0 0.0.0.0/0 tcp dpt:25 to:10.20.88.2
7 DNAT tcp -- 0.0.0.0/0 0.0.0.0/0 tcp dpt:80 to:10.20.88.2
8 DNAT tcp -- 0.0.0.0/0 0.0.0.0/0 tcp dpt:53 to:10.20.88.2

Chain POSTROUTING (policy ACCEPT)
num target prot opt source destination
1 SNAT all -- 0.0.0.0/0 0.0.0.0/0 to:192.243.109.204
2 SNAT tcp -- 0.0.0.0/0 10.20.88.0/24 tcp dpt:5272 to:10.20.88.1
3 SNAT tcp -- 0.0.0.0/0 10.20.88.2 tcp dpt:995 to:10.20.88.1
4 SNAT tcp -- 0.0.0.0/0 10.20.88.0/24 tcp dpt:587 to:10.20.88.1
5 SNAT tcp -- 0.0.0.0/0 10.20.88.0/24 tcp dpt:465 to:10.20.88.1
6 SNAT tcp -- 0.0.0.0/0 10.20.88.0/24 tcp dpt:443 to:10.20.88.1
7 SNAT tcp -- 0.0.0.0/0 10.20.88.0/24 tcp dpt:25 to:10.20.88.1
8 SNAT tcp -- 0.0.0.0/0 10.20.88.0/24 tcp dpt:80 to:10.20.88.1
9 SNAT tcp -- 0.0.0.0/0 10.20.88.0/24 tcp dpt:53 to:10.20.88.1

Chain OUTPUT (policy ACCEPT)
num target prot opt source destination

messagebus (pid 583) is running...
named is stopped
netconsole module not loaded
Configured devices:
lo venet0
Currently active devices:
lo venet0 tun0
nmbd is stopped
nscd is stopped
ntpd is stopped
Status written to /var/log/messages
portreserve (pid 558) is running...
quota_nld is stopped
rdisc is stopped
rpcbind is stopped
rsyslogd (pid 568) is running...
sandbox is stopped
saslauthd (pid 650) is running...
sendmail is stopped
sm-client is stopped
smbd is stopped
snmpd is stopped
snmptrapd is stopped
openssh-daemon (pid 626) is running...
Webmin (pid 689) is running
winbindd is stopped
xinetd (pid 638) is running...


Thank, Tom

TasMot
Posts: 2
Joined: 2017/11/09 00:25:34

Re: SMTP passthrough

Post by TasMot » 2017/11/10 14:59:47

Bump

Post Reply