Is possible reject mail with multiple destination?

2010-08-10 Thread kazabe
Hi

My boss was request me to stop the mails related with non laborals contents.

Specifically wanna stop all the emails related with videos, jokes,
funny pictures, etc.  We detect to any email with 12 or more address
destination in the body, always have non laboral content.

Is possible evaluate the body content to stop any email with 12 or
more forward addresses?

Thanks in advance.


Re: Is possible reject mail with multiple destination?

2010-08-11 Thread kazabe
2010/8/11 Magnus Bäck :
>
> The body (or, as I suspect you really meant, the headers) is irrelevant,
> it's the envelope you should inspect. A policy server can record the
> number of recipients in a message and reject the message if a particular
> condition is met. Check out existing policy servers like policyd and see
> if they meet your requirements.
>
> Of course, the users will find ways around this -- sending multiple
> messages or just keep sending the messages but to fewer people. You have
> a social problem, not a technical one.
>

hi

i need by example reject this email.




From: "MARTHA DIAZ" 
To: divin...@hotmail.com, gonzalez...@gmail.com, maia...@hotmail.com,
angelamaritz...@hotmail.com, bibiss...@hotmail.com,
juancaco...@hotmail.com, zhi...@hotmail.com, lcp...@hotmail.com,
carolina_ne...@hotmail.com
CC: dh...@hotmail.com, gerca...@hotmail.com, h...@hotmail.com,
lualne...@hotmail.com, conde...@supercabletv.net.co,
orfigo...@yahoo.com, mt...@hotmail.com, mauherd...@hotmail.com,
mpne...@hotmail.com, rafitapap...@hotmail.com,
albarpel...@hotmail.com, virap...@hotmail.com, zmp...@hotmail.com
Subject: FW: LA MEJOR PUBLICIDAD!!
Date: Tue, 19 Dec 2006 17:52:45 +








From:  Camila Andrea Ruget Castro 
To:  ,
,,
,
,,
,,
,,
,,
,,
,,
,
,,
,,
,,
,
,,
,,
,,
,,
,
,,
,
Subject:  FW: LA MEJOR PUBLICIDAD!!
Date:  Tue, 19 Dec 2006 00:35:27 +0100
>
>
>
>
>
>
>
>
> > From: ricardo8...@hotmail.com
> > To: limar...@hotmail.com; karen17...@hotmail.com; 
> > angelapatric...@gmail.com; jenbluem...@hotmail.com; 
> > angelacaral...@hotmail.com; jotaesk...@hotmail.com; coler...@hotmail.com; 
> > adrianitalind...@hotmail.com; ladydvc2...@hotmail.com; cath...@hotmail.com; 
> > kavi...@hotmail.com; victoria_45_...@hotmail.com; lyn...@hotmail.com; 
> > civil@hotmail.com; lorenaa...@hotmail.com; mariak12...@hotmail.com; 
> > astrov...@hotmail.com; joyita...@hotmail.com; zare1...@hotmail.com; 
> > pilicamargo_...@hotmail.com; catator...@hotmail.com; anamis...@hotmail.com; 
> > luna_18...@hotmail.com; adrianheredi...@hotmail.com; 
> > monita_santama...@hotmail.com; ximeka...@hotmail.com; 
> > julyca...@hotmail.com; mariacarolin...@hotmail.com; carc1...@hotmail.com; 
> > lilianita_ru...@hotmail.com; alejag...@hotmail.com; 
> > mafegacha...@hotmail.com; ancod...@hotmail.com; edi...@hotmail.com; 
> > memoon...@hotmail.com; yelaiah71...@hotmail.com; juliethce...@hotmail.com
> > Subject: LA MEJOR PUBLICIDAD!!
> > Date: Sun, 10 Dec 2006 12:36:04 +0100
> >
> > RICARDO[http://gfx4.mail.live.com/mail/11.00/updatebeta/emoticons/smile_wink.gif]...
> > 
> > Prueba algunos de los nuevos servicios en línea que te ofrece Windows Live 
> > Ideas: tan nuevos que ni siquiera se han publicado oficialmente todavía. 
> > Pruébalo
>
>_
>Consigue el nuevo Windows Live Messenger
>http://get.live.com/messenger/overview




Charla con tus amigos en línea mediante MSN Messenger: Haz clic aquí




Charla con tus amigos en línea mediante MSN Messenger: Haz clic aquí

LOSMEJORESCOMERCIALES.pps


Re: Is possible reject mail with multiple destination?

2010-08-13 Thread kazabe
>
> Here's some rope:
>
> # main.cf
> header_checks = regexp:/etc/postfix/header_checks
>
> # header_checks
> IF /^(to|cc):/
> /(@*){10}/  HOLD  too many addresses in To: or CC: header
> ENDIF
>
>
>
> Note this counts the recipients listed in each header, not the combined
> total.
>
> Note this counts declared recipients listed in the headers. This has little
> or no relation to actual recipients.
>
> I wouldn't be surprised is this rejects mail you want, and passes lots of
> mail you don't want.  Use with caution.
>
> A "too many recipients might be spam" test is far better suited for a
> scoring system such as SpamAssassin, which can also do more complex checks.
>
> Consider using a content_filter or milter that incorporates SpamAssassin.

i use spamassassin to stop the spam, and work great.   the problem is
related with a "user culture".  by example: a user receive a great
joke, so forward it to others 10 users, and they forward again to
other 10 users and continue.  We need stop them.  the first idea is
talk with the users, but my boss request me an alternative technical
solution, i case of the users dont wanna cooperate.

thanks in advance


messages lost

2009-09-14 Thread kazabe
Hi.

This is my first post. :)

I have a mail server with a very rare issue.   Many users was reported
me to some messages was not arrive to the destination.  I enable a
always_bcc account to trace all the messages, and i detect, in many
cases, to some lost messages are with bad destination info or blocked
by spam filters in the destination servers.  But some messages
continue without any notice.

My boss was send the last friday aprox 50 messages.  He asked me about
why not all the messages was correctly received by the destination
account (both in the same domain and server).  I check the logs, and
only found 5 messages sended by him.  but the sended folder in the my
boss MUA (outlook 2007) show 48 messages correctly sended.  Dont have
any error notice, or mailer daemon alert.

I dont understand how can happen that.  the messages dont appear in
the servers logs.  Is like if the messages was not sended, but i see
that 48 messages in the sended folder without any error.

Some body here has been experiment a similar situation?

thanks in advance.

Regards


Re: messages lost

2009-09-15 Thread kazabe
yes, i check all the queues.

dont appear nothing.

«Existen dos cosas infinitas:
el universo y la estupidez humana... y no estoy muy seguro de la primera» :
Albert Einstein



2009/9/15 Ivan Stepaniuk :
> kazabe wrote:
>
>> My boss was send the last friday aprox 50 messages.  He asked me about
>> why not all the messages was correctly received by the destination
>> account (both in the same domain and server).  I check the logs, and
>> only found 5 messages sended by him.  but the sended folder in the my
>> boss MUA (outlook 2007) show 48 messages correctly sended.  Dont have
>> any error notice, or mailer daemon alert.
>>
>
> It may be obvious but did you check the queues?  ie:
> # qshape deferred
>
> my two cents.
>
> --
> Ivan Stepaniuk
> Alba Fotónica S.L.
> http://www.albafotonica.com
>


[OT] Hotmail change the mail policy yesterday????'

2012-05-31 Thread kazabe
Hi.

>From yesterday many servers to i admin has been banned to send
messages to hotmail.  The error is related to said: 550 SC-001

Do you are experimenting the same issue today?

Thanks and regards.


Re:

2012-12-31 Thread kazabe
do you check if the maildir is really from that user? maybe any UID
duplicated in the passwd?

2012/12/31  :
> I can see the mail coming but doesn't show up in the inbox.. Anyone have
> any ideas?
>
> Dec 31 13:35:35 kraner postfix/qmgr[2803]: 7109B40AB8:
> from=, size=1704, nrcpt=1 (queue active)
> Dec 31 13:35:35 kraner postfix/local[2958]: 7109B40AB8:
> to=, relay=local, delay=0.16, delays=0.14/0.01/0/0.01,
> dsn=2.0.0, status=sent (delivered to maildir)
> Dec 31 13:35:35 kraner postfix/qmgr[2803]: 7109B40AB8: removed
> Dec 31 13:36:05 kraner postfix/smtpd[2953]: disconnect from
> mail-ob0-f171.google.com[209.85.214.171]
> Dec 31 13:36:24 kraner postfix/postfix-script[3077]: refreshing the
> Postfix mail system
> Dec 31 13:36:24 kraner postfix/master[839]: reload -- version 2.9.3,
> configuration /etc/postfix
> Dec 31 13:36:24 kraner postfix/anvil[2955]: statistics: max connection
> rate 1/60s for (smtp:209.85.214.171) at Dec 31 13:35:35
> Dec 31 13:36:24 kraner postfix/anvil[2955]: statistics: max connection
> count 1 for (smtp:209.85.214.171) at Dec 31 13:35:35
> Dec 31 13:36:24 kraner postfix/anvil[2955]: statistics: max cache size 1
> at Dec 31 13:35:35
>
>


Many copies of the same message in the mailbox

2016-02-17 Thread kazabe
hi.

i some users are reporting me to they are receiving many copies of the same
message.  the remitent just send 1 message and the recipient receipt 7 or
more copies of the same message.

we check the send mail folder in the remitent (outlook 2010) and just have
the message sended 1 time.

the copies received in the destination folder have aprox 4 or 6 mins
between them.

can be a client sender problem? how can i verify that?

thanks and regards.


cert error on outlook when send email using ssl

2013-06-29 Thread kazabe
Hi.

Im trying to use postfix with ssl.  Now is working, but i have a little
situation with the outloook clients.

always to send a email, see a message

"The name of the security certificate is invalid or does not match the
name of the site"


The message is sended after accept the message, but the end users are
affraid with this message.


Im looking o google about to how to solve, but all the info are
related with ms exchange and i use postfix.

Can you share me some clues to solve it?


thanks in advance


can i save and keep a copy in the MX secundary queue?

2015-02-23 Thread kazabe
Hi.

I have a secundary MX managing the queue when the main MX is no
available.  All work fine.  The main MX is on line again and the
secundary MX send the messages to them.  But we need an special
feature to some specifical accounts:

if the secondary MX receive a message to c...@domain.com and the main
MX is not available, the user crm need access to the message stored in
the secundary MX.  I solve that using transport.

c...@domain.com   local:
domain.com smtp:[mx.domain.com]

That is a solution when Primary MX is down, because the crm user can
read any waiting message (using a webmail in secundary MX); but i have
a little issue to solve it:

How can i deliver the messages (or send a copy) received by
c...@domain.com to Primary MX when this is available again?  maybe
keeping a copy in the queue?.

I can use only the resources available in the secundary MX.

Any idea about that?

thanks and regards.


spam with doutle at (fake@domain1@domain2)

2019-01-18 Thread kazabe
hi,

My server is crying with a spam problem.  we are receiving a lot of
fake messages with virus attached.

the messages comming from an account like
fakeu...@mydomain.com@spammerdomain.com   with content very simlilar
to the messages sended by our real contacts.

How can i block that?  im trying with amavisd-new and postgrey but dont work.

maybe can i use some regexp?

thanks a lot


Bounce messages like gmail

2017-09-15 Thread kazabe
Hi.

Im looking about how to customize the bounce messages.

I follow this guide

http://www.postfix.org/bounce.5.html

And work fine, but i wanna customize it using HTML (like gmail), but i
cant foud how do that.

Something like this

https://gsuiteupdates.googleblog.com/2016/12/support-your-gmail-users-more-easily.html

How can i do a similar on postfix?

thanks and regards.


Can a ISP block partially the traffic over the port 25 ??

2018-06-28 Thread kazabe
Hi,

I'm have a very strange issue with a mail server, locate in the main
company office.  Until the last five weeks we are experimenting
problems to deliver emails to some domains stored on outlook.com and
other servers.  We message stay on our queue with the status 442 like
this:

"dsn=4.4.2, status=deferred (lost connection with
mail.server.com[XX.XX.X.XX] while receiving the initial server
greeting)."

We discard from our side any issue related with rbl, wrong ehlo
config, spf, dkim and firewall but the issue continue.

I connect my own laptop directly to the ISP router (to discard our
mail server or firewall completly), and do some connection test with
this results:

Check ports 25,587,465 on the remote mail server (mail.server.com)

Host is up (0.019s latency).
PORTSTATE SERVICE
25/tcp  open  smtp
465/tcp open  smtps
587/tcp open  submission

telnet to the port 25

=
telnet mail.server.com 25
Trying XX.XX.XX.XX...
Connected to mail.server.com.
Escape character is '^]'.
ehlo localhost
452 syntax error (connecting)

452 syntax error (connecting)

452 syntax error (connecting)

452 syntax error (connecting)

421 too many errors
Connection closed by foreign host.
==

This connection was not completly stabilshed.

Now, telnet to the same server on port 587

==
telnet mail.server.com 587
Trying XX.XX.XX.XX...
Connected to mail.server.com.
Escape character is '^]'.
220 mail.server.com ESMTP Postfix
ehlo localhost
250-mail.server.com
250-PIPELINING
250-SIZE 5120
250-VRFY
250-ETRN
250-STARTTLS
250-AUTH LOGIN PLAIN
250-AUTH=LOGIN PLAIN
250-ENHANCEDSTATUSCODES
250-8BITMIME
250 DSN
quit
221 2.0.0 Bye
Connection closed by foreign host.
==

Connection stablished correctly.

This dont happen with all the servers, but i see to is a common issue
when the destination server have other isp.

So, this is the question: why if both ports are "open", just the 587
permit to complete the connection?

Is possible to the ISP have some internal rules to "block" the traffic
related with some connections related with the port 25 of others ISP?
(i do the same test with 10 email servers where i know to use our same
ISP without problems)?

Im confused because this issue dont happen with all the port 25
connections;  just with some email servers, specially outlook.com, but
microsoft answer us to they dont have problems related with our IP.

Thanks a lot.


is possible modify the source address based on the subject?

2018-08-06 Thread kazabe
hello.
Is possible rewrite the sender address on a send mail when the subject
have some special expression?

By example: if i send an email from i...@domain.com with the word in
the  subject UPDATES, so send the email like sended FROM
n...@domain.com ??

can i do that with regrex?

http://www.postfix.org/ADDRESS_REWRITING_README.html

Really and a little bit confused with that Readme.

Thanks in advance.