Phil Pennock | 1 Aug 2008 02:07

Re: Apache <=> Exim

On 2008-07-31 at 15:00 +0100, Mike Cardwell wrote:
> Shove this (untested) in your data acl:

The DATA ACLs are for when there is a DATA command, which implies SMTP.
PHP on Unix uses the sendmail command interface, which is why I
suggested $caller_uid in the acl_not_smtp ACL.  Using $sender_ident and
a data ACL will help for the SMTP case though, yes.  And protecting both
is helpful.

-Phil

--

-- 
## List details at http://lists.exim.org/mailman/listinfo/exim-users 
## Exim details at http://www.exim.org/
## Please use the Wiki with this list - http://wiki.exim.org/

Tomas Merlin | 1 Aug 2008 04:48
Favicon

Exim rule for only accepting messages with picture attachment on an address

Hi,

I'm trying to have a rule for exim to do the following for all  
messages send to a particular address (say photo <at> gom-jabbar.org):
  - check if the email has a picture attachment
  - reject if it doesn't and send an email to the sender explaining  
the rejection
  - send the message to a command using the pipe transport

I read the documentation a bit, and don't really know where to begin  
to do that so if anybody has any pointers I would be very grateful.

Thanks,
Tomas

--

-- 
## List details at http://lists.exim.org/mailman/listinfo/exim-users 
## Exim details at http://www.exim.org/
## Please use the Wiki with this list - http://wiki.exim.org/

Odhiambo Washington | 1 Aug 2008 07:50
Picon

Re: Exim rule for only accepting messages with picture attachment on an address

On Fri, Aug 1, 2008 at 5:48 AM, Tomas Merlin <ml <at> gom-jabbar.org> wrote:
> Hi,
>
> I'm trying to have a rule for exim to do the following for all
> messages send to a particular address (say photo <at> gom-jabbar.org):
>  - check if the email has a picture attachment
>  - reject if it doesn't and send an email to the sender explaining
> the rejection
>  - send the message to a command using the pipe transport
>
> I read the documentation a bit, and don't really know where to begin
> to do that so if anybody has any pointers I would be very grateful.

You need to use some sort of piping to a script which does that. You
could achieve that via
your aliases file or using a redirect router with a pipe transport. I
guess I am right:-)

Go read further! There are so many examples in the list archives, but
you are most likely
going to write your script for doing the checks, etc.

--

-- 
Best regards,
Odhiambo WASHINGTON,
Nairobi,KE
+254733744121/+254722743223
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

"Oh My God! They killed init! You Bastards!"
(Continue reading)

Dave Evans | 1 Aug 2008 07:48
Picon
Favicon

Re: Apache <=> Exim

On Thu, Jul 31, 2008 at 05:07:18PM -0700, Phil Pennock wrote:
> On 2008-07-31 at 15:00 +0100, Mike Cardwell wrote:
> > Shove this (untested) in your data acl:
> 
> The DATA ACLs are for when there is a DATA command, which implies SMTP.
> PHP on Unix uses the sendmail command interface, which is why I
> suggested $caller_uid in the acl_not_smtp ACL.  Using $sender_ident and
> a data ACL will help for the SMTP case though, yes.  And protecting both
> is helpful.

On the web hosting I used to run (as mentioned in the thread referenced
earlier, "Feature req: env var logging"), I only allowed the sendmail
interface, not SMTP, for exactly that reason: so that Exim could reliably know
what local user was sending the mail, and read their CGI environment variables
(to track abuse).

-- 
Dave Evans
http://djce.org.uk/
http://djce.org.uk/pgpkey
--

-- 
## List details at http://lists.exim.org/mailman/listinfo/exim-users 
## Exim details at http://www.exim.org/
## Please use the Wiki with this list - http://wiki.exim.org/
Ted Cooper | 1 Aug 2008 10:15
Favicon

Re: Problem with exim4, hotmail is seeing my mail as Unsolicited Commercial E-mail

Mike Cardwell wrote:
> Marc Sherman wrote:
> 
>>> I try to send an mail to an hotmail adres. The mail is getting relayed 
>>> by an exim 4.63 (standard Etch).
>>> The mail is getting delevered to the SPAM folder. I have researched the 
>>> problem, i have made an message containing:
>> You're fighting a losing battle. Hotmail just can't be trusted to accept 
>> email reliably:
>>
>> http://projectile.ca/hotmail.html
> 
> For the record, I don't think the "hotmail_headers" method on that page 
> works anymore. I just gave it a test now, and it didn't seem to. I 
> stopped using that method a while ago when I realised I could just relay 
> my hotmail destined mail out through another box I have access to and it 
> arrived straight in the inbox every time.
> 
> God knows why they have such a problem accepting mail from my IP, still.

Here's a fun one for you.

When sending an email to a friend of mine on hotmail via a "perfectly" 
set up mail server (not this one - haha), if I mention the words email 
and google, or gmail, the email will never arrive not even into the spam 
box. If I send an email with the exact same text except with those words 
replaced with any other words, it gets straight through without delay.

--

-- 
## List details at http://lists.exim.org/mailman/listinfo/exim-users 
(Continue reading)

Ted Cooper | 1 Aug 2008 10:31
Favicon

Re: Exim rule for only accepting messages with picture attachment on an address

Tomas Merlin wrote:
> Hi,
> 
> I'm trying to have a rule for exim to do the following for all  
> messages send to a particular address (say photo <at> gom-jabbar.org):
>   - check if the email has a picture attachment
>   - reject if it doesn't and send an email to the sender explaining  
> the rejection
>   - send the message to a command using the pipe transport
> 
> I read the documentation a bit, and don't really know where to begin  
> to do that so if anybody has any pointers I would be very grateful.

Re: #2 there. You are much better off simply rejecting the email at SMTP 
time with a simple, short message. Short because some email clients and 
servers out there are stupid and don't return error messages.
If you generate an email for every single message that comes in lacking 
an image you are going to become a source of spam for every single 
spammer that decided to add your email address to the their mailing 
list. It might not be their spam that is sent out, but you will be 
sending your spam to randomly generated from addresses until something 
melts.

--

-- 
## List details at http://lists.exim.org/mailman/listinfo/exim-users 
## Exim details at http://www.exim.org/
## Please use the Wiki with this list - http://wiki.exim.org/

Mike Cardwell | 1 Aug 2008 11:21

Re: Apache <=> Exim

Phil Pennock wrote:

>> Shove this (untested) in your data acl:
> 
> The DATA ACLs are for when there is a DATA command, which implies SMTP.
> PHP on Unix uses the sendmail command interface, which is why I
> suggested $caller_uid in the acl_not_smtp ACL.  Using $sender_ident and
> a data ACL will help for the SMTP case though, yes.  And protecting both
> is helpful.

You're right. For some reason I had it in my head that the data acl was 
still used for non smtp stuff. I guess you'd drop it in both the 
not_smtp and data acl then. For the record, you can use $sender_ident as 
well as $caller_uid in the not_smtp acl to determine the username of the 
sender.

Mike

--

-- 
## List details at http://lists.exim.org/mailman/listinfo/exim-users 
## Exim details at http://www.exim.org/
## Please use the Wiki with this list - http://wiki.exim.org/

Tony Finch | 1 Aug 2008 14:51
Picon
Favicon

Re: route_list, randomize and failover

On Wed, 25 Jun 2008, Markus Meyer wrote:
>
> I have four server and balance between them with the randomize option.
> Now I also want some kind of failover which I try to realize with the
> following syntax:
>
> route_list = *
> mx1:mx2:mx3:mx4:+:mx2:mx3:mx4:+:mx1:mx3:mx4:+:mx1:mx3:mx4:+:mx1:mx2:mx4
> randomize byname
>
> (all in one line)
>
> Why doesn't this work or how can I accomplish this? I want to cover all
> server outages and still have the randomizing.

route_list = * mx1:mx2:mx3:mx4 randomize byname

Exim will do failover without any special configuration.

Tony.
-- 
<fanf <at> exim.org>   <dot <at> dotat.at>   http://dotat.at/   ${sg{\N${sg{\
N\}{([^N]*)(.)(.)(.*)}{\$1\$3\$2\$1\$3\n\$2\$3\$4\$3\n\$3\$2\$4}}\
\N}{([^N]*)(.)(.)(.*)}{\$1\$3\$2\$1\$3\n\$2\$3\$4\$3\n\$3\$2\$4}}

--

-- 
## List details at http://lists.exim.org/mailman/listinfo/exim-users 
## Exim details at http://www.exim.org/
## Please use the Wiki with this list - http://wiki.exim.org/

(Continue reading)

Tony Finch | 1 Aug 2008 14:57
Picon
Favicon

Re: incorrect processing of negative spamassassin scores

On Wed, 25 Jun 2008, Jason_Meers wrote:
>
> some of the support staff I'm working with seem to think that the
> following config is incorrectly flagging a message with a negative
> spamassassin score as if it were a positive spamassassin score.
> For example a message with a -4.1 spamassassin score is being tagged as
> if it were a +4.1 spamassassin score.

My setup isn't exhibiting any bug like this. Do you have any example
messages which show the problem?

Tony.
-- 
<fanf <at> exim.org>   <dot <at> dotat.at>   http://dotat.at/   ${sg{\N${sg{\
N\}{([^N]*)(.)(.)(.*)}{\$1\$3\$2\$1\$3\n\$2\$3\$4\$3\n\$3\$2\$4}}\
\N}{([^N]*)(.)(.)(.*)}{\$1\$3\$2\$1\$3\n\$2\$3\$4\$3\n\$3\$2\$4}}

--

-- 
## List details at http://lists.exim.org/mailman/listinfo/exim-users 
## Exim details at http://www.exim.org/
## Please use the Wiki with this list - http://wiki.exim.org/

Tony Finch | 1 Aug 2008 15:14
Picon
Favicon

Re: Exim, Vexim, Sieve and Spamassassin

On Tue, 1 Jul 2008, Sascha Schmidt wrote:
>
> I thought about a mysql-clause which is used within the condition part.
> The problem I have is that I'm not knowing the correct syntax to create
> the part correctly; missing curely brackets etc... :-)
>
> My first thought was the following one:
> ---
> warn message = X-Spam-Flag: YES
> spam  = vmail:true
> condition  = ${if >{$spam_score_int}{${lookup mysql{select \
> users.sa_tag * 10 from users,domains \
> where localpart = '${quote_mysql:$local_part}' \
> and domain = '${quote_mysql:$domain}' \
> and users.on_spamassassin = '1' \
> and users.domain_id=domains.domain_id}
> ---
>
> Perhaps someone can look at this code and tell me what's wrong with it.
> Any hint is welcome;)

The problem is that $local_part and $domain are only defined in the RCPT
ACL. A message may have multiple recipients so there's no simple way to
use per-recipient settings in the post-DATA ACL.

What you can do is look up each recipient's setting in a RCPT ACL and
store it in an $acl_mXXXX variable, with some logic to combine multiple
recipients' choices. For example, if you set the variable to 1 if a user
wants messages tagged and do nothing otherwise, then the message will be
tagged if any one of multiple recipients wants it tagged.
(Continue reading)


Gmane