csf smtp tweak

This forum is only for reproducible bugs with csf and lfd (i.e. not iptables problems, lack of understanding how to use a feature, etc). Posts must be accompanied with full technical details of the problem and how it can be recreated. Any posts not adhering to this, or not considered bugs, will be moved to the General Discussion (csf) forum.
Post Reply
katmai
Junior Member
Posts: 11
Joined: 16 Feb 2007, 20:27

csf smtp tweak

Post by katmai »

there is one problem

Chain OUTPUT (policy DROP)
target prot opt source destination
ACCEPT tcp -- 0.0.0.0/0 127.0.0.1 tcp dpt:25
ACCEPT tcp -- 0.0.0.0/0 0.0.0.0/0 tcp dpt:25 OWNER GID match 12
ACCEPT tcp -- 0.0.0.0/0 0.0.0.0/0 tcp dpt:25 OWNER GID match 32001
ACCEPT tcp -- 0.0.0.0/0 0.0.0.0/0 tcp dpt:25 OWNER UID match 0
REJECT tcp -- 0.0.0.0/0 0.0.0.0/0 tcp dpt:25 reject-with icmp-port-unreachable


root@nemesis [~]# cat /etc/passwd |grep -w 12
mail:x:8:12:mail:/var/spool/mail:/sbin/nologin
games:x:12:100:games:/usr/games:/sbin/nologin

why does it allow user games outgoing mail ? instead of mail ? how can this be modified ?
katmai
Junior Member
Posts: 11
Joined: 16 Feb 2007, 20:27

Post by katmai »

right now i can send out mails using nobody. i have unchecked smtp tweak from cpanel and left only configserver one. it just doesn't block ..
chirpy
Moderator
Posts: 3537
Joined: 09 Dec 2006, 18:13

Post by chirpy »

That setting has nothing at all to do with sending out by nobody. It restricts email being sent directly to port 25 except by mailman, root and exim. The nobody email is going through exim so won't be blocked. To block that you need to to the option in WHM > Tweak Settings.
katmai
Junior Member
Posts: 11
Joined: 16 Feb 2007, 20:27

Post by katmai »

small question though. why does csf allow user .. games? to send mail?
chirpy
Moderator
Posts: 3537
Joined: 09 Dec 2006, 18:13

Post by chirpy »

The SMTP_BLOCK allows the same GID's as the cPanel SMTP Tweak does, i.e. mail and mailman. The only UID you've listed is 0 for root.
katmai
Junior Member
Posts: 11
Joined: 16 Feb 2007, 20:27

Post by katmai »

sorry my mistake i did not see GID
Post Reply