Re: [exim] host lookup did not complete

2009-07-16 Thread Neal Becker
On Wednesday 15 July 2009, Ian Eiloart wrote:
 --On 14 July 2009 08:36:49 -0400 Neal Becker ndbeck...@gmail.com wrote:
  What's wrong here:
 
  2009-07-13 14:35:32 H=(localhost.localdomain) [127.0.0.1] sender verify
  defer for ndbeck...@gmail.com: host lookup for smtp.hns.com did not
  complete (DNS timeout?)

 Beats me. Why would a sender verification callout for ndbeck...@gmail.com
 care about smtp.hns.com? Have you changed anything here, or do you have
 some strange routing for gmail, or is smtp.hns.com a smart router?

Yes, smtp.hns.com is a smarthost


  2009-07-13 14:35:32 H=(localhost.localdomain) [127.0.0.1]
  F=ndbeck...@gmail.com temporarily rejected RCPT ndbeck...@gmail.com:
  Could not complete sender verify
  2009-07-13 14:35:32 H=(localhost.localdomain) [127.0.0.1]
  F=ndbeck...@gmail.com temporarily rejected RCPT
  victor.l...@hughes.com:  Could not complete sender verify
  2009-07-13 15:22:32 H=(localhost.localdomain) [127.0.0.1] sender verify
  defer for ndbeck...@gmail.com: host lookup for smtp.hns.com did not
  complete (DNS timeout?)
 
  It sounds like this means smtp.hns.com dns lookup failed.  But on this
  same  machine:
 
  host smtp.hns.com
  smtp.hns.com is an alias for excore8.hns.com.
  excore8.hns.com has address 139.85.52.126
  excore8.hns.com has address 139.85.52.156
 
  Any ideas?



-- 
## 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/


Re: [exim] host lookup did not complete

2009-07-16 Thread Neal Becker
Ian Eiloart wrote:

 
 
 --On 15 July 2009 07:28:57 -0400 Neal Becker ndbeck...@gmail.com wrote:
 
 On Wednesday 15 July 2009, Ian Eiloart wrote:
 --On 14 July 2009 08:36:49 -0400 Neal Becker ndbeck...@gmail.com
 wrote:
  What's wrong here:
 
  2009-07-13 14:35:32 H=(localhost.localdomain) [127.0.0.1] sender
  verify defer for ndbeck...@gmail.com: host lookup for smtp.hns.com
  did not complete (DNS timeout?)

 Beats me. Why would a sender verification callout for
 ndbeck...@gmail.com care about smtp.hns.com? Have you changed
 anything here, or do you have some strange routing for gmail, or is
 smtp.hns.com a smart router?

 Yes, smtp.hns.com is a smarthost
 
 OK, so it's relaying your callouts? Otherwise there's no point doing them.

OK, I turned of sender verify.

 
 Was your name server up 14:35 on 13/7/2009 ? Was smtp.hns.com up?

I have no way to know - but it seemed to fail repeatedly over some time (it 
was not just a single log message).

 
  2009-07-13 14:35:32 H=(localhost.localdomain) [127.0.0.1]
  F=ndbeck...@gmail.com temporarily rejected RCPT
  ndbeck...@gmail.com: Could not complete sender verify
  2009-07-13 14:35:32 H=(localhost.localdomain) [127.0.0.1]
  F=ndbeck...@gmail.com temporarily rejected RCPT
  victor.l...@hughes.com:  Could not complete sender verify
  2009-07-13 15:22:32 H=(localhost.localdomain) [127.0.0.1] sender
  verify defer for ndbeck...@gmail.com: host lookup for smtp.hns.com
  did not complete (DNS timeout?)
 
  It sounds like this means smtp.hns.com dns lookup failed.  But on this
  same  machine:
 
  host smtp.hns.com
  smtp.hns.com is an alias for excore8.hns.com.
  excore8.hns.com has address 139.85.52.126
  excore8.hns.com has address 139.85.52.156
 
  Any ideas?


 
 
 




-- 
## 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/


[exim] Trying to block all WAN sent zip emails

2009-07-16 Thread Brent Clark
Hi all

Im trying to get it that I block all zip files, but users in my LAN can 
send zip files. Ive tried the following, but yet if I send from my gmail 
account, the zip file gets accepted.

deny message = This message contains a prohibited file extension 
(${extract{-1}{.}{${lc:$mime_filename}}})
hosts = !+relay_from_hosts :
#!hosts = 192.168.111.0/24
log_message = BAD_ATTACHMENT (${extract{-1}{.}{${lc:$mime_filename}}})
condition = ${if match{${extract{-1}{.}{${lc:$mime_filename{\N^( \
   zip\
   )$\N}{1}{0}}

If someone could assist, it would be appreciated.

Kind Regards
Brent Clark

-- 
## 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/


Re: [exim] Trying to block all WAN sent zip emails

2009-07-16 Thread Dennis Davis
On Thu, 16 Jul 2009, Brent Clark wrote:

 From: Brent Clark brentgclarkl...@gmail.com
 To: exim-users@exim.org
 Date: Thu, 16 Jul 2009 11:42:27 +0200
 Subject: [exim] Trying to block all WAN sent zip emails
 
 Im trying to get it that I block all zip files, but users in my LAN can 
 send zip files. Ive tried the following, but yet if I send from my gmail 
 account, the zip file gets accepted.
 
 deny message = This message contains a prohibited file extension 
 (${extract{-1}{.}{${lc:$mime_filename}}})
 hosts = !+relay_from_hosts :
 #!hosts = 192.168.111.0/24
 log_message = BAD_ATTACHMENT (${extract{-1}{.}{${lc:$mime_filename}}})
 condition = ${if match{${extract{-1}{.}{${lc:$mime_filename{\N^( \
zip\
)$\N}{1}{0}}
 
 If someone could assist, it would be appreciated.

Section 41.6 of the Exim manual describes how to do this using the
(deprecated) demime condition.  Note you'll have to compile support
for this into exim.

Can't say I've used this recently.  It seemed to work OK when I did.
-- 
Dennis Davis, BUCS, University of Bath, Bath, BA2 7AY, UK
d.h.da...@bath.ac.uk   Phone: +44 1225 386101

-- 
## 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/


Re: [exim] Trying to block all WAN sent zip emails

2009-07-16 Thread Lena
 From: Brent Clark

 condition = ${if match{${extract{-1}{.}{${lc:$mime_filename{\N^( \

I suspect the blank before the backslash at the end.

-- 
## 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/


Re: [exim] host lookup did not complete

2009-07-16 Thread Ian Eiloart


--On 15 July 2009 08:37:04 -0400 Neal Becker ndbeck...@gmail.com wrote:

 Ian Eiloart wrote:



 --On 15 July 2009 07:28:57 -0400 Neal Becker ndbeck...@gmail.com wrote:

 On Wednesday 15 July 2009, Ian Eiloart wrote:
 --On 14 July 2009 08:36:49 -0400 Neal Becker ndbeck...@gmail.com
 wrote:
  What's wrong here:
 
  2009-07-13 14:35:32 H=(localhost.localdomain) [127.0.0.1] sender
  verify defer for ndbeck...@gmail.com: host lookup for smtp.hns.com
  did not complete (DNS timeout?)

 Beats me. Why would a sender verification callout for
 ndbeck...@gmail.com care about smtp.hns.com? Have you changed
 anything here, or do you have some strange routing for gmail, or is
 smtp.hns.com a smart router?

 Yes, smtp.hns.com is a smarthost

 OK, so it's relaying your callouts? Otherwise there's no point doing
 them.

 OK, I turned of sender verify.


 Was your name server up 14:35 on 13/7/2009 ? Was smtp.hns.com up?

 I have no way to know - but it seemed to fail repeatedly over some time
 (it  was not just a single log message).


If you got consistent failure over an extended period, and were also unable 
to relay mail through the smart host, then probably the smart host was 
down. If the failure was inconsistent, but you also got some message 
delivery failures (as well as callout failures), then perhaps the smart 
host was overloaded and refusing some connections.

If it's only the callouts that failed, but deliveries through the smart 
host were OK, then perhaps you had a DNS problem. The DNS entry for the 
smart host would have been cached, but callouts for fresh sender domains 
would require fresh DNS lookups.

-- 
Ian Eiloart
IT Services, University of Sussex
01273-873148 x3148
For new support requests, see http://www.sussex.ac.uk/its/help/

-- 
## 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/


Re: [exim] Trying to block all WAN sent zip emails

2009-07-16 Thread Renaud Allard
Hi,

Brent Clark wrote:
 Hi all
 
 Im trying to get it that I block all zip files, but users in my LAN can 
 send zip files. Ive tried the following, but yet if I send from my gmail 
 account, the zip file gets accepted.
 
 deny message = This message contains a prohibited file extension 
 (${extract{-1}{.}{${lc:$mime_filename}}})
 hosts = !+relay_from_hosts :
 #!hosts = 192.168.111.0/24
 log_message = BAD_ATTACHMENT (${extract{-1}{.}{${lc:$mime_filename}}})
 condition = ${if match{${extract{-1}{.}{${lc:$mime_filename{\N^( \
zip\
)$\N}{1}{0}}
 
Wouldn't be something like this easier?

deny
hosts = !+relay_from_hosts :
condition = ${if match {${lc:$mime_filename}} {\N(\.zip)$\N} {1}{0}}
message = Blacklisted file extension detected in $mime_filename.





smime.p7s
Description: S/MIME Cryptographic Signature
-- 
## 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/

[exim] SQL hostlist against a different server

2009-07-16 Thread Ian P. Christian
Hi all,

I've noticed since 4.68 , I can use different SQL servers for
read/write, or define different servers on a per-query basis, as
coveredin the manual in 9.21/9.22 [1]

However.. I can't see how I'd query a certain server for a hostlist.
For example, how would the below be modified?

hostlist blacklist_hosts = mysql;Q_BLACKLIST_HOSTS


Thanks!

[1]  http://www.exim.org/exim-html-current/doc/html/spec_html/ch09.html#SECTsql
-- 
Blog: http://pookey.co.uk/blog
Follow me on twitter: http://twitter.com/ipchristian

-- 
## 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/


[exim] too many DNS-Lookups

2009-07-16 Thread Margrit . Lottmann
How can I configure a transport that  has to
deliver Mails to a special local smtp server
without any DNS calls

???
-- 

MfG Margrit Lottmann

Otto-von-Guericke-Universitaet Magdeburg
Abt. Kommunikation und Netze

Tel.: 0391 67 18572  Fax:  0391 67 11134

-- 
## 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/


Re: [exim] too many DNS-Lookups

2009-07-16 Thread Karl-Heinz Wild

Search for exim smarthost

regards
Karl-Heinz


On 16.07.2009, at 15:30, margrit.lottm...@urz.uni-magdeburg.de wrote:


How can I configure a transport that  has to
deliver Mails to a special local smtp server
without any DNS calls

???
--

MfG Margrit Lottmann

Otto-von-Guericke-Universitaet Magdeburg
Abt. Kommunikation und Netze

Tel.: 0391 67 18572  Fax:  0391 67 11134

--
## 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/





smime.p7s
Description: S/MIME cryptographic signature
-- 
## 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/

Re: [exim] Trying to block all WAN sent zip emails

2009-07-16 Thread Brent Clark
Renaud Allard wrote:
 Wouldn't be something like this easier?

 deny
 hosts = !+relay_from_hosts :
 condition = ${if match {${lc:$mime_filename}} {\N(\.zip)$\N} {1}{0}}
 message = Blacklisted file extension detected in $mime_filename.
Thanks

This did the trick.

Regards
Brent Clark

-- 
## 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/


[exim] Rewrite Reply-To dependent on another header

2009-07-16 Thread Phill Harvey-Smith
Hi all,

Re-sending this as it didn't appear to make it to the list, apologies if 
anyone gets it twice !

I am a member of an email mailing list that's list owner insists on 
setting the reply address back to the original sender rather than the 
more conventional reply to the list.

So what I would like to do is insert a Reply-To: header that by default 
sends replies back to the list. There are other headers that I can use 
to identify the list messages, so that I only re-write the correct 
messages, infact one of the headers the list software inserts, has the 
address of the list.

I know the correct way to get this fixed is to convince the list admin 
to change things but they seem adamant that this is the best way of 
doing things despite the fact that I get the feeling most of the4 list 
members don't.

Cheers.

Phill.

-- 
## 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/


Re: [exim] Change IP address in Received header

2009-07-16 Thread Jonny_77

Thanks, work perfectly :)

Jakob Hirsch wrote:
 
 Jonny_77, 2009-07-15 10:18:
 Due to privacy issues I want to change IP address of some users from the
 received header to 127.0.0.1. I want to make it only for some users. I
 have
 found received_header_text variable, but I do not understand how to
 change
 this variable for defined users. Thanks.
 
 Here's what I use:
 
 received_header_text = Received: \
   ${if !def:authenticated_id \
 {${if def:sender_rcvhost \
   {from $sender_rcvhost\n\t} \
   {${if def:sender_ident {from ${quote_local_part:$sender_ident}
 }}${if def:sender_helo_name {(helo=$sender_helo_name)\n\t\
   }}\
   by $smtp_active_hostname \
   ${if def:received_protocol {with $received_protocol}} \
   ${if def:tls_cipher {($tls_cipher)\n\t}}\
   (Exim $version_number)\n\t\
   id $message_exim_id
 
 The key part is the ${if !def:authenticated_id ...}, i.e. if the
 sender is authenticated, the complete from ... is skipped.
 You can replace the condition by some lookup and add whatever text you
 want if the lookup succeeds, e.g.
 
 received_header_text = Received: \
 ${lookup {$authenticated_id} lsearch {/etc/exim/users_with_hidden_ip} \
   {by 127.0.0.1} \
   {${if def:sender_rcvhost \
...
 } \
 ...
 
 
 -- 
 ## 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/
 
 

-- 
View this message in context: 
http://www.nabble.com/Change-IP-address-in-Received-header-tp24493430p24512126.html
Sent from the Exim Users mailing list archive at Nabble.com.


-- 
## 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/


Re: [exim] Exim/email-related stream at UKUUG conference, Birmingham, 7/8/9-August-2009

2009-07-16 Thread Alain Williams
On Thu, Jul 16, 2009 at 11:38:01AM +0100, Niall Mansfield wrote:
  On Jul 13,  8:55pm, Alain Williams wrote:
   Should there be a BOF/open session on exim maintainance -- which
   is decidedly down since Phil retired ?
 
 We can certainly arrange that if there is a demand.  We've booked extra
 rooms for BOFs and project-specific meetings, but we do need to know in
 advance roughly how many people are interested, so we can schedule the
 room, or include this as a talk in the regular streams.
 
 If you are interested, e-mail to exim-ukuug at uit dot co dot uk

I am interested. The latest exim (4.66) is 2 years old, if it gets much older
it will start to rot. I notice that 'tom' has been making changes ...

There are some nice BOF rooms at that venue.

I think that it would be very helpful if we were to prepare some kind
of outline on what we would like to achieve. I'll chuck in a few
suggestions to get the ball rolling:

* Bug fixes - how we prioritise

* Enhancements - what new features do we need

* External changes - should we collect/merge back in ?
  I am thinking of changes that Linux-distros/... may have made.

* Funding - could we pursuade some large corporates/... with a bit of funding
  that could be used to pay someone to do this -- perhaps part time.

I nominate Niall  myself as scribes of the event -- to try and get some
kind of report out to this list/whereever.

-- 
Alain Williams
Linux/GNU Consultant - Mail systems, Web sites, Networking, Programmer, IT 
Lecturer.
+44 (0) 787 668 0256  http://www.phcomp.co.uk/
Parliament Hill Computers Ltd. Registration Information: 
http://www.phcomp.co.uk/contact.php
Past chairman of UKUUG: http://www.ukuug.org/
#include std_disclaimer.h

-- 
## 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/


Re: [exim] Exim/email-related stream at UKUUG conference, Birmingham, 7/8/9-August-2009

2009-07-16 Thread Martin A. Brooks
On 16/07/2009 15:27, Alain Williams wrote:
 I am interested. The latest exim (4.66) is 2 years old, if it gets much older
 it will start to rot.


Maybe I'm misunderstanding but 

http://www.exim.org/version.html

-- 
## 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/


Re: [exim] SQL hostlist against a different server

2009-07-16 Thread Warren Baker
2009/7/16 Ian P. Christian poo...@pookey.co.uk

 Hi all,

 I've noticed since 4.68 , I can use different SQL servers for
 read/write, or define different servers on a per-query basis, as
 coveredin the manual in 9.21/9.22 [1]

 However.. I can't see how I'd query a certain server for a hostlist.
 For example, how would the below be modified?

 hostlist blacklist_hosts = mysql;Q_BLACKLIST_HOSTS



Like so:

hostlist blacklist_hosts = ${lookup
mysql{servers=OTHER_MYSQL_SERVER/db/username/password;Q_BLACKLIST_HOSTS}}

OTHER_MYSQL_SERVER can be defined previously for example:

OTHER_MYSQL_SERVER = 10.0.0.10/database/username/password

so you can simply use:

hostlist blacklist_hosts = ${lookup
mysql{servers=OTHER_MYSQL_SERVER;Q_BLACKLIST_HOSTS}}

hope that answers your question.

.warren
-- 
## 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/


Re: [exim] Rewrite Reply-To dependent on another header

2009-07-16 Thread Heiko Schlittermann
Hello Phill,

Phill Harvey-Smith phill-l...@bio.warwick.ac.uk (Do 16 Jul 2009 15:59:29 
CEST):
 Hi all,
 
...
 
 I am a member of an email mailing list that's list owner insists on 
 setting the reply address back to the original sender rather than the 
 more conventional reply to the list.

Your're not talking about *this* list? ;-) -- I'm not sure about what is
more conventional. Both solutions have pros and cons. From my POV it's
heavily dependant on the list audience. The more qualified they (the
subscribers) are (talking about the ability to use a mail client), the
more I'd tend not to modify the Reply-To/From etc, because they are able
to differentiate betweena (r)reply and a (l)ist reply.

 So what I would like to do is insert a Reply-To: header that by default 
 sends replies back to the list. There are other headers that I can use 
 to identify the list messages, so that I only re-write the correct 
 messages, infact one of the headers the list software inserts, has the 
 address of the list.

You could use a headers_add = Reply-To: ...  in your transport, probably 
combined
with a headers_remove = reply-to.

Here is some untested pointer.

# Macros for readability
IS_LIST = match{$h_list-id:}{exim-users}
# or this one:
# IS_LIST = def:h_list-post:

begin transports:

local_user:
...
headers_remove = ${if IS_LIST {Reply-To}}
headers_add= ${if IS_LIST 
{${address:${sg{$h_list-post:}{mailto:}{}

Best regards from Dresden/Germany
Viele Grüße aus Dresden
Heiko Schlittermann
-- 
 SCHLITTERMANN.de  internet  unix support -
 Heiko Schlittermann HS12-RIPE -
 gnupg encrypted messages are welcome - key ID: 48D0359B ---
 gnupg fingerprint: 3061 CFBF 2D88 F034 E8D2  7E92 EE4E AC98 48D0 359B -


signature.asc
Description: Digital signature
-- 
## 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/