Change the quarantine URL or port

Questions and answers about how to do stuff
Post Reply
BigBadLambo
Posts: 9
Joined: 11 Nov 2015 12:13

Change the quarantine URL or port

Post 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
User avatar
shawniverson
Posts: 3783
Joined: 13 Jan 2014 23:30
Location: Indianapolis, Indiana USA
Contact:

Re: Change the quarantine URL or port

Post by shawniverson »

A few things you can do...

1) Change $hostname in MailScanner

Code: Select all

Hostname = myspamfilter.tld
And restart mailscanner

Code: Select all

sudo service MailScanner restart
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

Code: Select all

sudo service MailScanner restart
BigBadLambo
Posts: 9
Joined: 11 Nov 2015 12:13

Re: Change the quarantine URL or port

Post by BigBadLambo »

How do I change the port?
User avatar
shawniverson
Posts: 3783
Joined: 13 Jan 2014 23:30
Location: Indianapolis, Indiana USA
Contact:

Re: Change the quarantine URL or port

Post by shawniverson »

You have to use options 2 or 3 and place the port in the link in the report files.
BigBadLambo
Posts: 9
Joined: 11 Nov 2015 12:13

Re: Change the quarantine URL or port

Post 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
Post Reply