Koozali.org: home of the SME Server
Legacy Forums => Experienced User Forum => Topic started by: Steven Thomson on May 22, 2003, 04:40:00 PM
-
I run avmailgate antivirus. I need to get qmail to listen on port 825 instead of 25 so that my antivirus can process the mail first. (I think)
Any ideas ?
Thanks
-
there is a howto for this problem.
with that i did it and it works.
sorry, but i don't remember now.
i'll have a look when i'm at home and will tell you.
cheers
klaus
-
here is the solution:
1. Edit /etc/services and add the line:
smtp-backdoor 825/tcp #Backdoor port for QMail for avscan to work
Create a custom template to do this:
# touch /etc/e-smith/templates-custom/etc/services/20smtp-backdoor
# echo "smtp-backdoor 825/tcp # BackDoor port for QMail to make AVScan possible" > /etc/e-smith/templates-custom/etc/services/20smtp-backdoor
# /sbin/e-smith/expand-template /etc/services
*Note: The #echo ... line is one long line
2. Edit /var/service/smtpfront-qmail/run:
Change:
exec /usr/bin/env - \
/usr/local/bin/envuidgid qmaild \
/usr/local/bin/tcpserver\
-U \
-R \
-x /etc/tcprules/tcp.smtp.cdb \
-l 0 \
0 smtp \
/usr/local/bin/envdir ./env \
/usr/bin/smtpfront-qmail
to:
exec /usr/bin/env - \
/usr/local/bin/envuidgid qmaild \
/usr/local/bin/tcpserver\
-U \
-R \
-x /etc/tcprules/tcp.smtp.cdb \
-l 0 \
0 smtp-backdoor \
/usr/local/bin/envdir ./env \
/usr/bin/smtpfront-qmail
3. Restart smtpfront-qmail and avgate
4. You may have to create a link in /etc/rc7.d to start avgate at reboot
-
Thanks so much...
:-) worked perfectly
I now have Avmailgate working again.
I actually have a server-manager panel that works with it too now.
-
re: I actually have a server-manager panel that works with it too now.
Is it a dungug's rpm? If so, which one?
Thanks
-
I'm not sure about Dungog's rpm.
I got mine from a really old rpm (Vexins) and had to modify it a bit to work with the newer avmailgate releases.
I could email the panel if you like but I don't know how it should be installed.
I assume it just needs putting in the right place
(/etc/e-smith/web/panels/manager/cgi-bin/) but couldn't be certain.
let me know if you want to try it.