Jakob Hirsch | 1 Jul 2007 01:52
Picon
Gravatar

Re: smtp authentication using default domain

alexis wrote:

> sounds dangerous.

What sounds dangerous? Please use proper quoting.

If you meant the sql injection stuff: Just use quote_mysql with every
externally provided string. In your query, it would be $auth1, which is
already quoted in my example for the domain part. Just do the same with
local_part:

... WHERE username='${quote_mysql:${local_part:$1}}' ...

> and what about to define a variable before (pseudo code) i cannot
> realize how to do this with exim yet, im new using it.

There's no such thing in exim. There's no real need for it, anyway.

--

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

Ted Cooper | 1 Jul 2007 02:51
Favicon

Re: Detecting the Registrar Barrier

Andrew - Supernews wrote:
>>>>>> "Ted" == Ted Cooper <eximX1211 <at> linuxwan.net> writes:
> 
>  > Martin A. Brooks wrote:
>  >> Ted Cooper wrote:
>  >>> Hmm.. this also doesn't take into account illegal hostnames such as
>  >>> those with bits starting with digits
>  >> 
>  >> There's nothing illegal about using numbers to start part of a
>  >> domain name.  http://www.888.com/
> 
>  Ted> RFC 1035
> 
>  Ted> The labels must follow the rules for ARPANET host names.  They
>  Ted> must start with a letter, end with a letter or digit, and have
>  Ted> as interior characters only letters, digits, and hyphen.  There
>  Ted> are also some restrictions on the length.  Labels must be 63
>  Ted> characters or less.
> 
> This was superseded long ago:
> 
> RFC 1123:
> 
> 2.1  Host Names and Numbers
> 
>       The syntax of a legal Internet host name was specified in RFC-952
>       [DNS:4].  One aspect of host name syntax is hereby changed: the
>       restriction on the first character is relaxed to allow either a
>       letter or a digit.  Host software MUST support this more liberal
>       syntax.
(Continue reading)

Scott Jones | 1 Jul 2007 10:06
Picon

No incoming email

Yesterday morning, I went to my office, checked my email, and wrote up a
letter to mail to 277 of my emailable patients.

I sent out the letter, using a mailing list managed by Mailman and it went
out fine. Several patients noted that they received the email.

Normally I always receive several emails back, saying the recipient is out
of the office, or this or that, but NOTHING came in all morning, and nothing
from anyone else either. I usually will receive 20 to 40 more before lunch.

I tested, sending email out, then calling friends and family, asking did you
receive my email. Yes, they all received what I had sent, and all tried
replying back. None reported any bounced back email, nor did I see any of
their messages in my email account. I use mutt to read my email.

I have exim 4 running. I ran /etc/init.d/exim4 restart as well as rebooting
a couple times, for good measure.

I read tonight in this howto:
http://edseek.com/~jasonb/articles/exim4_courier/exim4.html
but despite reading through I couldn't find any solution. Jason mentions one
item that may hold the clue:

"First, if your host has a static IP address that is not located in your
ISP's dynamic range, you should be able to initiate SMTP connections to
remote sites directly and you do not need to use a smarthost. If such is the
case, select "*internet site; mail is sent and received directly using SMTP*".
For the rest of us, select "*mail sent by smarthost; received via SMTP or
fetchmail*" as your mail configuration. The system mail name should be your
fully qualified domain name. If you have not deployed DNS at your site, you
(Continue reading)

Stefan Onken | 1 Jul 2007 10:44
Picon

Exim and vpopmail

Hello,

I would like to move one existing qmail server with vpopmail to 
Exim. I noticed that Exim is supporting vpopmail CDB files as well.

Is anyone able to help me with a working config as a quick start for 
me ?

Thanks
Stonki

-- 
www.stonki.de:    the more I see, the more I know.......
www.proftpd.de:   Deutsche ProFTPD Dokumentation
www.krename.net:  Der Batch Renamer für KDE
www.kbarcode.net: Die Barcode Solution für KDE

--

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

Peter Bowyer | 1 Jul 2007 11:31
Gravatar

Re: Spamassassin Spamfolder Issue

On 30/06/07, Matt <lm7812 <at> gmail.com> wrote:
> I have the following in the directors section of my exim.conf on my
> Directadmin server that uses exim for an MTA.

If your config file has a 'directors' section then you're running Exim
3. This software is at least 5 years old and no longer maintained or
supported. You need to upgrade.

What you're asking for may be possible with Exim 3, but you'll be hard
pushed to find anyone who knows much about it.

Sorry, this probably isn't what you hoped to hear.

Peter
-- 
Peter Bowyer
Email: peter <at> bowyer.org

--

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

Peter Bowyer | 1 Jul 2007 11:39
Gravatar

Re: No incoming email

On 01/07/07, Scott Jones <sanchiro <at> gmail.com> wrote:
> Yesterday morning, I went to my office, checked my email, and wrote up a
> letter to mail to 277 of my emailable patients.
>
> I sent out the letter, using a mailing list managed by Mailman and it went
> out fine. Several patients noted that they received the email.
>
> Normally I always receive several emails back, saying the recipient is out
> of the office, or this or that, but NOTHING came in all morning, and nothing
> from anyone else either. I usually will receive 20 to 40 more before lunch.

Well without any more information, there's a huge list of things which
might cause this..here are a few:

- Your domain registration expired
- The DNS servers for your domain are broken or unreachable
- The MX records for your domain in the DNS are messed up
- Your dynamic IP address changed
- Your ISP's routing is screwed
- Your ISP's smarthost is broken
- Your ISP is not allowing incoming connections on port 25
- Your firewall is not allowing incoming connections on port 25
- Your iptables rules are not allowing incoming connections on port 25
- The disk partition where Exim stores your incoming mail is full or broken

What does your Exim log tell you? Is mail reaching your server at all?
If not, the fault probably isn't under your control.

Peter

(Continue reading)

Matt | 1 Jul 2007 16:41
Picon

Re: Spamassassin Spamfolder Issue

> > I have the following in the directors section of my exim.conf on my
> > Directadmin server that uses exim for an MTA.
>
> If your config file has a 'directors' section then you're running Exim
> 3. This software is at least 5 years old and no longer maintained or
> supported. You need to upgrade.
>
> What you're asking for may be possible with Exim 3, but you'll be hard
> pushed to find anyone who knows much about it.
>
> Sorry, this probably isn't what you hoped to hear.

This is what I show.

[root <at> server ~]# rpm -qa | grep exim -i
da_exim-4.60-1

Its in the DIRECTORS CONFIGURATION which is within the ROUTERS
CONFIGURATION.  There is no 'begin directors' but there is a 'begin
routers'.

I already have it setup to reject viruses at SMTP time with ClamAV and
that works great.

Thanks.

Matthew

--

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

alexis | 1 Jul 2007 17:14
Picon

Re: smtp authentication using default domain

Please, can you help me how to to this in exim directly (to ask for a
default domain if none is provided). because i created a stored
procedure on mysql and i need to specify client_flags on the
connection string for this to work and i cannot get it working (the
connection string) on exim.

what i want is if user doesnt provide a domain in it's username,
append a default domain.

thanks again

On 6/30/07, Jakob Hirsch <jh <at> plonk.de> wrote:
> alexis wrote:
>
> > sounds dangerous.
>
> What sounds dangerous? Please use proper quoting.
>
> If you meant the sql injection stuff: Just use quote_mysql with every
> externally provided string. In your query, it would be $auth1, which is
> already quoted in my example for the domain part. Just do the same with
> local_part:
>
> ... WHERE username='${quote_mysql:${local_part:$1}}' ...
>
> > and what about to define a variable before (pseudo code) i cannot
> > realize how to do this with exim yet, im new using it.
>
> There's no such thing in exim. There's no real need for it, anyway.
>
(Continue reading)

Peter Bowyer | 1 Jul 2007 17:20
Gravatar

Re: Spamassassin Spamfolder Issue

On 01/07/07, Matt <lm7812 <at> gmail.com> wrote:
> This is what I show.
>
> [root <at> server ~]# rpm -qa | grep exim -i
> da_exim-4.60-1
>
> Its in the DIRECTORS CONFIGURATION which is within the ROUTERS
> CONFIGURATION.  There is no 'begin directors' but there is a 'begin
> routers'.

Odd terminology, then, since Exim 4 doesn't have the concept of a
director  - but OK....

There's no reason why you can't add an additional sub-condition to the
condition you already have on that router, which checks another file
for recipient-level preferences - check out $recipient in the docs.

Presumably your config was written by someone or some packager other
than yourself- you might get better help if you consult the support
resources available there, since what you're trying to do is going to
look pretty complicated if you're not used to Exim config files.

Peter

-- 
Peter Bowyer
Email: peter <at> bowyer.org

--

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

Ted Cooper | 1 Jul 2007 17:30
Favicon

Re: smtp authentication using default domain

alexis wrote:
> Please, can you help me how to to this in exim directly (to ask for a
> default domain if none is provided). because i created a stored
> procedure on mysql and i need to specify client_flags on the
> connection string for this to work and i cannot get it working (the
> connection string) on exim.
> 
> what i want is if user doesnt provide a domain in it's username,
> append a default domain.

I ran into a problem very similar to this the other day. All my SMTP
AUTH username are username <at> domain.name styled. If someone tried to
authenticate without an  <at> domain.name part it went a little wonky and
tried to open a directory to lsearch. To fix the problem, I created a
default file in that directory and exchanged ${domain:$1} with:

${if eq{${domain:$1}}{}{defaultnone}{${domain:$1}}}

So that if the {$domain:$1} part expands to the empty string, the whole
thing expands out to "defaultnone". Otherwise it expands into what I
really wanted in the first place :P
I have a "defaultnone" file stored in with all the domains which is a
completely empty file. No username/password combination will ever work :)
With a few minor tweaks, the same thing should work with your database.
Just create a fake domain in there that's never going to work and
replace a few bits. Have fun!

Ted.

--

-- 
(Continue reading)


Gmane