[qmailtoaster] detect macros in ms documents

2017-08-04 Thread Rajesh M
hi

there are rising number of incidences with ms .doc and .xls being transmitted 
with embedded macro virus

i found a tool here which will detect such files containing macro virus and 
mark them as spam
https://github.com/fmbla/spamassassin-olemacro/blob/master/OLEMacro.pm

i dont wish rely on antivirus -- in the last incident sophos, kaspersky (i am 
seeing it fail for the first time) and clam did not detect it.

does anybody use the above spamassassin module or something equivalent ?

rajesh


-
To unsubscribe, e-mail: qmailtoaster-list-unsubscr...@qmailtoaster.com
For additional commands, e-mail: qmailtoaster-list-h...@qmailtoaster.com

RE: [qmailtoaster] Qmailtoaster smtproutes

2017-08-04 Thread NoriyukiHayashi
Hi,

I see...
You can use valias as forward function.
You mean that you want to 2 sending.

Regards,
Nori


> Dear Eric,
> 
>  
> 
> Sorry for my pool explanation.
> 
> I studied http://wiki.qmailtoaster.com/index.php/Smtproutes before.
> 
> If my understanding is right, domaina.com:smarthost1.xxx.com means when send
> email to domaina.com then use smarthost1.xxx.com.
> 
> In my case, domaina.com, domainb.com and domainc.com are in my qmailtoaster
> box (not the destination).
> 
> If email send from domaina.com to outside, use smarthost1.xxx.com.
> 
> If email send from domainb.com to outside, use smarthost2.xxx.com.
> 
> If email send from domainc.com to outside, use smarthost3.xxx.com.
> 
> For email from others domains, send directly from qmailtoaster box.
> 
>  
> 
> Is there any ways to do like that in qmailtoaster?
> 
>  
> 
> Teruo
> 
>  
> 
>  
> 
> Sensitivity: Internal
> 
> From: Eric Broch [mailto:ebr...@whitehorsetc.com] 
> Sent: Friday, August 4, 2017 8:22 PM
> To: qmailtoaster-list@qmailtoaster.com
> Subject: Re: [qmailtoaster] Qmailtoaster smtproutes
> 
>  
> 
> Sorry,
> 
> domaina.com:smarthost1.xxx.com
> domainb.com:smarthost2.xxx.com
> domainc.com:smarthost3.xxx.com
> qmailctl stop
> qmailctl start
> 
> On 8/4/2017 6:19 AM, Eric Broch wrote:
> 
> In /var/qmail/control/smtproutes
> 
> domaina.com: smarthost1.xxx.com
> 
> domainb.com:marthost2.xxx.com
> 
> domainc.com:marthost3.xxx.com
> 
> qmailctl stop
> 
> qmailctl start
> 
>  
> 
> http://wiki.qmailtoaster.com/index.php/Smtproutes
> 
>  
> 
> On 8/4/2017 4:34 AM, Kan Teruo wrote:
> 
> Dear All,
> 
>  
> 
> I have few domains in qmailtoaster and want to use different smart host.
> 
>  
> 
> For example
> 
> 1.domaina.com route to smarthost1.xxx.com
> 2.domainb.com route to smarthost2.xxx.com
> 3.domainc.com route to smarthost3.xxx.com
> 4.rest of the domains directly send out from the qmailtoaster box
> 
>  
> 
> I checked /var/qmail/control/smtproutes but it just can route to different
> smart hosts by destination.
> 
> Is it possible to use different smart hosts based on sender domain inside
> qmailtoaster?
> 
>  
> 
> Thanks & best regards,
> 
> Teruo
> 
>  
> 
> Sensitivity: Internal
> 
>  
> 
> -- 
> Eric Broch
> White Horse Technical Consulting (WHTC)
> 
>  
> 
> -- 
> Eric Broch
> White Horse Technical Consulting (WHTC)
> 
> 
--
NoriyukiHayashi ibisMailで送信!

RE: Re[2]: [qmailtoaster] Qmailtoaster smtproutes

2017-08-04 Thread Kan Teruo
Dear Eric,

 

Thanks for your confirmation.

 

Teruo

 

From: Eric Broch [mailto:ebr...@whitehorsetc.com] 
Sent: Saturday, August 5, 2017 11:22 AM
To: qmailtoaster-list@qmailtoaster.com
Subject: Re[2]: [qmailtoaster] Qmailtoaster smtproutes

 

Sorry,

I don't think there is a way to do this in qmailtoaster as it sits.

Eric

 

-- Original Message --

From: "Kan Teruo" <  teruo1...@gmail.com>

To:   
qmailtoaster-list@qmailtoaster.com

Sent: 8/4/2017 5:40:22 PM

Subject: RE: [qmailtoaster] Qmailtoaster smtproutes

 

Dear Eric,

 

Sorry for my pool explanation.

I studied   
http://wiki.qmailtoaster.com/index.php/Smtproutes before.

If my understanding is right, domaina.com:smarthost1.xxx.com means when send 
email to domaina.com then use smarthost1.xxx.com.

In my case, domaina.com, domainb.com and domainc.com are in my qmailtoaster box 
(not the destination).

If email send from domaina.com to outside, use smarthost1.xxx.com.

If email send from domainb.com to outside, use smarthost2.xxx.com.

If email send from domainc.com to outside, use smarthost3.xxx.com.

For email from others domains, send directly from qmailtoaster box.

 

Is there any ways to do like that in qmailtoaster?

 

Teruo

 

 

Sensitivity: Internal

From: Eric Broch [mailto:  
ebr...@whitehorsetc.com] 
Sent: Friday, August 4, 2017 8:22 PM
To:   
qmailtoaster-list@qmailtoaster.com
Subject: Re: [qmailtoaster] Qmailtoaster smtproutes

 

Sorry,

domaina.com:smarthost1.xxx.com
domainb.com:smarthost2.xxx.com
domainc.com:smarthost3.xxx.com
qmailctl stop
qmailctl start

On 8/4/2017 6:19 AM, Eric Broch wrote:

In /var/qmail/control/smtproutes

domaina.com: smarthost1.xxx.com

domainb.com:marthost2.xxx.com

domainc.com:marthost3.xxx.com

qmailctl stop

qmailctl start

 

  
http://wiki.qmailtoaster.com/index.php/Smtproutes

 

On 8/4/2017 4:34 AM, Kan Teruo wrote:

Dear All,

 

I have few domains in qmailtoaster and want to use different smart host.

 

For example

1.  domaina.com route to smarthost1.xxx.com
2.  domainb.com route to smarthost2.xxx.com
3.  domainc.com route to smarthost3.xxx.com
4.  rest of the domains directly send out from the qmailtoaster box

 

I checked /var/qmail/control/smtproutes but it just can route to different 
smart hosts by destination.

Is it possible to use different smart hosts based on sender domain inside 
qmailtoaster?

 

Thanks & best regards,

Teruo

 

Sensitivity: Internal

 

-- 

Eric Broch

White Horse Technical Consulting (WHTC)

 

-- 

Eric Broch

White Horse Technical Consulting (WHTC)



RE: [qmailtoaster] Disable all security checking

2017-08-04 Thread Kan Teruo
Dear Eric,

 

I found that my /etc/tcprules.d/tcp.smtp is a little different with you.

 

:allow,BADMIMETYPE="",BADLOADERTYPE="M",CHKUSER_RCPTLIMIT="50",CHKUSER_WRONG
RCPTLIMIT="10",NOP0FCHECK="1",QMAILQUEUE="/var/qmail/bin/simscan",DKQUEUE="/
var/qmail/bin/qmail-queue.orig",DKVERIFY="DEGIJKfh",DKSIGN="/var/qmail/contr
ol/domainkeys/%/private"

 

Is it just simple to replace as you suggested?

 

:allow,CHKUSER_RCPTLIMIT="50",CHKUSER_WRONGRCPTLIMIT="10",QMAILQUEUE="/var/q
mail/bin/qmail-queue.orig",DKSIGN="/var/qmail/control/domainkeys/%/private"

 

Teruo

 

From: Eric Broch [mailto:ebr...@whitehorsetc.com] 
Sent: Friday, August 4, 2017 9:06 PM
To: qmailtoaster-list@qmailtoaster.com
Subject: Re: [qmailtoaster] Disable all security checking

 

To disable simscan, dk, ripmime, and warlord in /etc/tcprules.d/tcp.smtp
this SHOULD work, change the line :

:allow,BADMIMETYPE="",BADLOADERTYPE="M",CHKUSER_RCPTLIMIT="50",CHKUSER_WRONG
RCPTLIMIT="10",QMAILQUEUE="/var/qmail/bin/simscan",DKSIGN="/var/qmail/contro
l/domainkeys/%/private",NOP0FCHECK="1"

to

:allow,CHKUSER_RCPTLIMIT="50",CHKUSER_WRONGRCPTLIMIT="10",QMAILQUEUE="/var/q
mail/bin/qmail-queue.orig",DKSIGN="/var/qmail/control/domainkeys/%/private"

qmailctl cdb

qmailctl stop

qmailctl start

>From /var/qmail/supervise/smtp/run

remove line

$SPAMDYKE --config-file $SPAMDYKE_CONF \

and spfbehaviour looks good.

 

On 8/4/2017 3:36 AM, Kan Teruo wrote:

Dear All,

 

I would like to disable all security checking for some testing.

May I know below are enough/correct or not?

 

This is a new installation in Centos 7.

 

1.  In /var/qmail/control change simcontrol
:clam=yes,spam=yes,spam_hits=12,attach=.mp3:.src:.bat:.pif to

:clam=no,spam=no,spam_hits=12,attach=.mp3:.src:.bat:.pif

2.  In /var/qmail/control change spfbehavior from 3 to 0
3.  Disable spamdyke

# cd /var/qmail/supervise/smtp

# ln -sf run.dist run

# qmailctl restart

4.  Disable domain keys

cd /var/qmail/bin

ln -sf qmail-queue.orig qmail-queue 

qmailctl restart

 

Thanks & best regards,

Teruo





-- 
Eric Broch
White Horse Technical Consulting (WHTC)


Re[2]: [qmailtoaster] Qmailtoaster smtproutes

2017-08-04 Thread Eric Broch

Sorry,
I don't think there is a way to do this in qmailtoaster as it sits.
Eric

-- Original Message --
From: "Kan Teruo" 
To: qmailtoaster-list@qmailtoaster.com
Sent: 8/4/2017 5:40:22 PM
Subject: RE: [qmailtoaster] Qmailtoaster smtproutes


Dear Eric,



Sorry for my pool explanation.

I studied http://wiki.qmailtoaster.com/index.php/Smtproutes before.

If my understanding is right, domaina.com:smarthost1.xxx.com means when 
send email to domaina.com then use smarthost1.xxx.com.


In my case, domaina.com, domainb.com and domainc.com are in my 
qmailtoaster box (not the destination).


If email send from domaina.com to outside, use smarthost1.xxx.com.

If email send from domainb.com to outside, use smarthost2.xxx.com.

If email send from domainc.com to outside, use smarthost3.xxx.com.

For email from others domains, send directly from qmailtoaster box.



Is there any ways to do like that in qmailtoaster?



Teruo





Sensitivity: Internal

From: Eric Broch [mailto:ebr...@whitehorsetc.com]
Sent: Friday, August 4, 2017 8:22 PM
To:qmailtoaster-list@qmailtoaster.com
Subject: Re: [qmailtoaster] Qmailtoaster smtproutes



Sorry,

domaina.com:smarthost1.xxx.com
domainb.com:smarthost2.xxx.com
domainc.com:smarthost3.xxx.com
qmailctl stop
qmailctl start

On 8/4/2017 6:19 AM, Eric Broch wrote:


In /var/qmail/control/smtproutes

domaina.com: smarthost1.xxx.com

domainb.com:marthost2.xxx.com

domainc.com:marthost3.xxx.com

qmailctl stop

qmailctl start



http://wiki.qmailtoaster.com/index.php/Smtproutes



On 8/4/2017 4:34 AM, Kan Teruo wrote:


Dear All,



I have few domains in qmailtoaster and want to use different smart 
host.




For example

domaina.com route to smarthost1.xxx.comdomainb.com route to 
smarthost2.xxx.comdomainc.com route to smarthost3.xxx.comrest of the 
domains directly send out from the qmailtoaster box



I checked /var/qmail/control/smtproutes but it just can route to 
different smart hosts by destination.


Is it possible to use different smart hosts based on sender domain 
inside qmailtoaster?




Thanks & best regards,

Teruo



Sensitivity: Internal




--
Eric Broch
White Horse Technical Consulting (WHTC)



--
Eric Broch
White Horse Technical Consulting (WHTC)

Re: [qmailtoaster] Qmailtoaster smtproutes

2017-08-04 Thread Remo Mattei
Use vaddaliasdomain for that..

so main domain main.com and alias junk.com all the mail going to junk
will be delivered on main.com and vice versa.

I think that's what you are looking for.

Remo
> Kan Teruo 
> August 4, 2017 at 4:40 PM
>
> Dear Eric,
>
>  
>
> Sorry for my pool explanation.
>
> I studied http://wiki.qmailtoaster.com/index.php/Smtproutes before.
>
> If my understanding is right, domaina.com:smarthost1.xxx.com means
> when send email to domaina.com then use smarthost1.xxx.com.
>
> In my case, domaina.com, domainb.com and domainc.com are in my
> qmailtoaster box (not the destination).
>
> If email send from domaina.com to outside, use smarthost1.xxx.com.
>
> If email send from domainb.com to outside, use smarthost2.xxx.com.
>
> If email send from domainc.com to outside, use smarthost3.xxx.com.
>
> For email from others domains, send directly from qmailtoaster box.
>
>  
>
> Is there any ways to do like that in qmailtoaster?
>
>  
>
> Teruo
>
>  
>
>  
>
> Sensitivity: Internal
>
> *From:*Eric Broch [mailto:ebr...@whitehorsetc.com]
> *Sent:* Friday, August 4, 2017 8:22 PM
> *To:* qmailtoaster-list@qmailtoaster.com
> *Subject:* Re: [qmailtoaster] Qmailtoaster smtproutes
>
>  
>
> Sorry,
>
> domaina.com:smarthost1.xxx.com
> domainb.com:smarthost2.xxx.com
> domainc.com:smarthost3.xxx.com
> qmailctl stop
> qmailctl start
>
> On 8/4/2017 6:19 AM, Eric Broch wrote:
>
>  
>
> -- 
> Eric Broch
> White Horse Technical Consulting (WHTC)
> Eric Broch 
> August 4, 2017 at 5:21 AM
>
> Sorry,
>
> domaina.com:smarthost1.xxx.com
> domainb.com:smarthost2.xxx.com
> domainc.com:smarthost3.xxx.com
> qmailctl stop
> qmailctl start
>
> On 8/4/2017 6:19 AM, Eric Broch wrote:
>
> -- 
> Eric Broch
> White Horse Technical Consulting (WHTC)
> Eric Broch 
> August 4, 2017 at 5:19 AM
>
> In /var/qmail/control/smtproutes
>
> domaina.com: smarthost1.xxx.com
>
> domainb.com:marthost2.xxx.com
>
> domainc.com:marthost3.xxx.com
>
> qmailctl stop
>
> qmailctl start
>
>
> http://wiki.qmailtoaster.com/index.php/Smtproutes
>
>
> On 8/4/2017 4:34 AM, Kan Teruo wrote:
>
> -- 
> Eric Broch
> White Horse Technical Consulting (WHTC)
> Kan Teruo 
> August 4, 2017 at 3:34 AM
>
> Dear All,
>
>  
>
> I have few domains in qmailtoaster and want to use different smart host.
>
>  
>
> For example
>
>  1. domaina.com route to smarthost1.xxx.com
>  2. domainb.com route to smarthost2.xxx.com
>  3. domainc.com route to smarthost3.xxx.com
>  4. rest of the domains directly send out from the qmailtoaster box
>
>  
>
> I checked /var/qmail/control/smtproutes but it just can route to
> different smart hosts by destination.
>
> Is it possible to use different smart hosts based on sender domain
> inside qmailtoaster?
>
>  
>
> Thanks & best regards,
>
> Teruo
>
>
>
> Sensitivity: Internal
>



RE: [qmailtoaster] Qmailtoaster smtproutes

2017-08-04 Thread Kan Teruo
Dear Eric,

 

Sorry for my pool explanation.

I studied http://wiki.qmailtoaster.com/index.php/Smtproutes before.

If my understanding is right, domaina.com:smarthost1.xxx.com means when send
email to domaina.com then use smarthost1.xxx.com.

In my case, domaina.com, domainb.com and domainc.com are in my qmailtoaster
box (not the destination).

If email send from domaina.com to outside, use smarthost1.xxx.com.

If email send from domainb.com to outside, use smarthost2.xxx.com.

If email send from domainc.com to outside, use smarthost3.xxx.com.

For email from others domains, send directly from qmailtoaster box.

 

Is there any ways to do like that in qmailtoaster?

 

Teruo

 

 

Sensitivity: Internal

From: Eric Broch [mailto:ebr...@whitehorsetc.com] 
Sent: Friday, August 4, 2017 8:22 PM
To: qmailtoaster-list@qmailtoaster.com
Subject: Re: [qmailtoaster] Qmailtoaster smtproutes

 

Sorry,

domaina.com:smarthost1.xxx.com
domainb.com:smarthost2.xxx.com
domainc.com:smarthost3.xxx.com
qmailctl stop
qmailctl start

On 8/4/2017 6:19 AM, Eric Broch wrote:

In /var/qmail/control/smtproutes

domaina.com: smarthost1.xxx.com

domainb.com:marthost2.xxx.com

domainc.com:marthost3.xxx.com

qmailctl stop

qmailctl start

 

http://wiki.qmailtoaster.com/index.php/Smtproutes

 

On 8/4/2017 4:34 AM, Kan Teruo wrote:

Dear All,

 

I have few domains in qmailtoaster and want to use different smart host.

 

For example

1.  domaina.com route to smarthost1.xxx.com
2.  domainb.com route to smarthost2.xxx.com
3.  domainc.com route to smarthost3.xxx.com
4.  rest of the domains directly send out from the qmailtoaster box

 

I checked /var/qmail/control/smtproutes but it just can route to different
smart hosts by destination.

Is it possible to use different smart hosts based on sender domain inside
qmailtoaster?

 

Thanks & best regards,

Teruo

 

Sensitivity: Internal

 

-- 
Eric Broch
White Horse Technical Consulting (WHTC)

 

-- 
Eric Broch
White Horse Technical Consulting (WHTC)


RE: [qmailtoaster] Disable all security checking

2017-08-04 Thread Kan Teruo
Dear Eric,

 

Thanks for your help.

 

Teruo

 

 

Sensitivity: Internal

From: Eric Broch [mailto:ebr...@whitehorsetc.com] 
Sent: Friday, August 4, 2017 9:06 PM
To: qmailtoaster-list@qmailtoaster.com
Subject: Re: [qmailtoaster] Disable all security checking

 

To disable simscan, dk, ripmime, and warlord in /etc/tcprules.d/tcp.smtp
this SHOULD work, change the line :

:allow,BADMIMETYPE="",BADLOADERTYPE="M",CHKUSER_RCPTLIMIT="50",CHKUSER_WRONG
RCPTLIMIT="10",QMAILQUEUE="/var/qmail/bin/simscan",DKSIGN="/var/qmail/contro
l/domainkeys/%/private",NOP0FCHECK="1"

to

:allow,CHKUSER_RCPTLIMIT="50",CHKUSER_WRONGRCPTLIMIT="10",QMAILQUEUE="/var/q
mail/bin/qmail-queue.orig",DKSIGN="/var/qmail/control/domainkeys/%/private"

qmailctl cdb

qmailctl stop

qmailctl start

>From /var/qmail/supervise/smtp/run

remove line

$SPAMDYKE --config-file $SPAMDYKE_CONF \

and spfbehaviour looks good.

 

On 8/4/2017 3:36 AM, Kan Teruo wrote:

Dear All,

 

I would like to disable all security checking for some testing.

May I know below are enough/correct or not?

 

This is a new installation in Centos 7.

 

1.  In /var/qmail/control change simcontrol
:clam=yes,spam=yes,spam_hits=12,attach=.mp3:.src:.bat:.pif to

:clam=no,spam=no,spam_hits=12,attach=.mp3:.src:.bat:.pif

2.  In /var/qmail/control change spfbehavior from 3 to 0
3.  Disable spamdyke

# cd /var/qmail/supervise/smtp

# ln -sf run.dist run

# qmailctl restart

4.  Disable domain keys

cd /var/qmail/bin

ln -sf qmail-queue.orig qmail-queue 

qmailctl restart

 

Thanks & best regards,

Teruo

 

-- 
Eric Broch
White Horse Technical Consulting (WHTC)


Re: [qmailtoaster] Qmailtoaster smtproutes

2017-08-04 Thread Eric Broch

Sorry,

domaina.com:smarthost1.xxx.com
domainb.com:smarthost2.xxx.com
domainc.com:smarthost3.xxx.com
qmailctl stop
qmailctl start

On 8/4/2017 6:19 AM, Eric Broch wrote:


In /var/qmail/control/smtproutes

domaina.com: smarthost1.xxx.com

domainb.com:marthost2.xxx.com

domainc.com:marthost3.xxx.com

qmailctl stop

qmailctl start


http://wiki.qmailtoaster.com/index.php/Smtproutes


On 8/4/2017 4:34 AM, Kan Teruo wrote:


Dear All,

I have few domains in qmailtoaster and want to use different smart host.

For example

 1. domaina.com route to smarthost1.xxx.com
 2. domainb.com route to smarthost2.xxx.com
 3. domainc.com route to smarthost3.xxx.com
 4. rest of the domains directly send out from the qmailtoaster box

I checked /var/qmail/control/smtproutes but it just can route to 
different smart hosts by destination.


Is it possible to use different smart hosts based on sender domain 
inside qmailtoaster?


Thanks & best regards,

Teruo



Sensitivity: Internal



--
Eric Broch
White Horse Technical Consulting (WHTC)


--
Eric Broch
White Horse Technical Consulting (WHTC)



Re: [qmailtoaster] Qmailtoaster smtproutes

2017-08-04 Thread Eric Broch

In /var/qmail/control/smtproutes

domaina.com: smarthost1.xxx.com

domainb.com:marthost2.xxx.com

domainc.com:marthost3.xxx.com

qmailctl stop

qmailctl start


http://wiki.qmailtoaster.com/index.php/Smtproutes


On 8/4/2017 4:34 AM, Kan Teruo wrote:


Dear All,

I have few domains in qmailtoaster and want to use different smart host.

For example

 1. domaina.com route to smarthost1.xxx.com
 2. domainb.com route to smarthost2.xxx.com
 3. domainc.com route to smarthost3.xxx.com
 4. rest of the domains directly send out from the qmailtoaster box

I checked /var/qmail/control/smtproutes but it just can route to 
different smart hosts by destination.


Is it possible to use different smart hosts based on sender domain 
inside qmailtoaster?


Thanks & best regards,

Teruo



Sensitivity: Internal



--
Eric Broch
White Horse Technical Consulting (WHTC)



[qmailtoaster] Qmailtoaster smtproutes

2017-08-04 Thread Kan Teruo
Dear All,

 

I have few domains in qmailtoaster and want to use different smart host.

 

For example

1.  domaina.com route to smarthost1.xxx.com
2.  domainb.com route to smarthost2.xxx.com
3.  domainc.com route to smarthost3.xxx.com
4.  rest of the domains directly send out from the qmailtoaster box

 

I checked /var/qmail/control/smtproutes but it just can route to different
smart hosts by destination.

Is it possible to use different smart hosts based on sender domain inside
qmailtoaster?

 

Thanks & best regards,

Teruo



Sensitivity: Internal



[qmailtoaster] Disable all security checking

2017-08-04 Thread Kan Teruo
Dear All,

 

I would like to disable all security checking for some testing.

May I know below are enough/correct or not?

 

This is a new installation in Centos 7.

 

1.  In /var/qmail/control change simcontrol
:clam=yes,spam=yes,spam_hits=12,attach=.mp3:.src:.bat:.pif to

:clam=no,spam=no,spam_hits=12,attach=.mp3:.src:.bat:.pif

2.  In /var/qmail/control change spfbehavior from 3 to 0
3.  Disable spamdyke

# cd /var/qmail/supervise/smtp

# ln -sf run.dist run

# qmailctl restart

4.  Disable domain keys

cd /var/qmail/bin

ln -sf qmail-queue.orig qmail-queue 

qmailctl restart

 

Thanks & best regards,

Teruo