avastrelay switches

When I try to run avast relay with the following switches, everything works fine:

switches="–server-ip 192.168.2.66:725 --client-ip 192.168.2.66:825 --avast-interface /var/run/avast4mailscanner.sock --log-file /var/log/avast4/avastrelay --user avrelay --timeout 60 --remote-clients

But when I add the following, avastrelay won’t start

–notify-sender --from-address postmaster

The log says it started and there’s a pid in /var/run, but there is no listener on port 725 and the avastd log says:

error: 'avast4file[28953]': can't initialize avast! engine: No such file or directory

I’ve also tried --from-address postmaster@theotherbell.com and got the same results.

How do I configure avastrelay to notify the sender that their mail has been rejected?

I have no problems with your switches. Check your firewall if port 723 is enable.
Also look for the 400.vps file in the directory defined in /etc/avastengine.conf file. It may be the cause why the avast! engine can’t be initialized.

I don’t understand why I would need to have port 723 open on my firewall.

At the moment, I have port 25 open on my firewall. The firewall forwards port 25 traffic to a server on the internal lan where qmail is listening on port 25. After blacklist checking, that qmail “gateway” relays mail to port 725 (avastrelay) and virus free mail is relayed to port 825 (another qmail that handles mailbox delivery).

I’m sorry. A little misunderstanding.