Koozali.org: home of the SME Server

change Qmail listen port

Steven Thomson

change Qmail listen port
« 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

Klaus Eckert

Re: change Qmail listen port
« Reply #1 on: May 22, 2003, 08:55:32 PM »
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

KlausEckert

Re: change Qmail listen port (2)
« Reply #2 on: May 23, 2003, 12:19:42 AM »
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

Steven Thomson

Re: change Qmail listen port (2)
« Reply #3 on: May 23, 2003, 05:08:16 AM »
Thanks so much...

:-) worked perfectly

I now have Avmailgate working again.

I actually have a server-manager panel that works with it too now.

Sylvan

Re: change Qmail listen port (2)
« Reply #4 on: May 26, 2003, 08:00:28 PM »
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

Steven Thomson

Re: change Qmail listen port (2)
« Reply #5 on: May 27, 2003, 01:57:53 AM »
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.