Page 1 of 1
Change the quarantine URL or port
Posted: 15 Nov 2015 02:23
by BigBadLambo
I have numerous IPs and ports coming through my firewall. I would like to change the message and the URL for quarantine messages to point to a location like. How could I change that?
If you are satisfied that this message is not spam, you can release it from quarantine
by clicking
http://spam.company.com:1234/cgi-bin/re ... 1c7c18e2c8
specifically this portion right here: spam.company.com:1234
Re: Change the quarantine URL or port
Posted: 15 Nov 2015 11:49
by shawniverson
A few things you can do...
1) Change $hostname in MailScanner
And restart mailscanner
2) Alter the report itself
/etc/MailScanner/reports/en/inline.sig.in.txt
/etc/MailScanner/reports/en/inline.sig.in.html
Replace $hostname with the desired hostname
3) Create rules for different domains
/etc/MailScanner/rules/sig.html.rules
/etc/MailScanner/rules/sig.txt.rules
Example:
Code: Select all
To: *@mydomain.tld /etc/MailScanner/reports/en/mycustomreport.txt
Restart Mailscanner after changes
Re: Change the quarantine URL or port
Posted: 15 Nov 2015 14:19
by BigBadLambo
How do I change the port?
Re: Change the quarantine URL or port
Posted: 15 Nov 2015 16:16
by shawniverson
You have to use options 2 or 3 and place the port in the link in the report files.
Re: Change the quarantine URL or port
Posted: 15 Nov 2015 18:36
by BigBadLambo
had to change the link in this file to get it to work. And changed the other 2 files.
/etc/MailScanner/reports/en/recipient.spam.report.txt