[Exim] setting up SMTP AUTH using virtual passwd files

Startseite
Nachricht löschen
Nachricht beantworten
Autor: Jeremy C. Reed
Datum:  
To: exim-users
Betreff: [Exim] setting up SMTP AUTH using virtual passwd files
Does anyone have any examples of setting up SMTP AUTH using different
passwd files based on username?

For example:
/etc/virtual/domain1/passwd
/etc/virtual/domain2/passwd

username would be user@domain1 or user@domain2.

I have:


login:
driver = plaintext
public_name = LOGIN
server_prompts = "Username:: : Password::"
server_condition = ${if
crypteq{$2}{${lookup{$1}lsearch{/etc/virtual/test/pass
wd}{$value}}}{1}{0}}
server_set_id = $1


But I want "test" directory above changed to "domain" as sent in the
username. So I need to split $1 at the "@" sign to get username and
"domain" (directory) name. Any ideas?

By the way, I am testing with Pine. I have:
smtp-server=rainier/user=testing
But I will change to
smtp-server=rainier/user=testing@domain1

And with pine, I did the following so it would work without
"security" complaint:
disable-these-authenticators=PLAIN

I read that Outlook only supports AUTH LOGIN. (Hopefully testing with pine
will be good enough for outlook.)

And I think I can't used CRAM MD5 because my passwords are already
encrypted.

  Jeremy C. Reed
....................................................
     BSD software, documentation, resources, news...
     http://bsd.reedmedia.net/