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
Change the quarantine URL or port
- shawniverson
- Posts: 3783
- Joined: 13 Jan 2014 23:30
- Location: Indianapolis, Indiana USA
- Contact:
Re: Change the quarantine URL or port
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:
Restart Mailscanner after changes
1) Change $hostname in MailScanner
Code: Select all
Hostname = myspamfilter.tld
Code: Select all
sudo service MailScanner restart
/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
Code: Select all
sudo service MailScanner restart
-
- Posts: 9
- Joined: 11 Nov 2015 12:13
Re: Change the quarantine URL or port
How do I change the port?
- shawniverson
- Posts: 3783
- Joined: 13 Jan 2014 23:30
- Location: Indianapolis, Indiana USA
- Contact:
Re: Change the quarantine URL or port
You have to use options 2 or 3 and place the port in the link in the report files.
-
- Posts: 9
- Joined: 11 Nov 2015 12:13
Re: Change the quarantine URL or port
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
/etc/MailScanner/reports/en/recipient.spam.report.txt