Ralf Gruner
2006-Mar-24 08:56 UTC
[Pkg-exim4-users] From sendmail to exim - full name from gecos field of passwd?
Hello all, I try to replace an old mail server running sendmail with Exim4 on Sarge. My idea was to run a simple configuration with the same behaviour like the old machine and expand it, when I better understand Exim''s configuration. I made an experimental installation (smarthost, local delivery in Maildir) and all seems to work, except that the old sendmail server uses the full names from the gecos field of the passwd file to accept SMTP mails. For example for my address it reads the first and last name and accepts mails to ralf.gruner@... Can I use such a mechanism in Exim too? I have found no hint in the docs. Or what would be a solution to replace this in a first step? My first idea is an alias file, but I am not sure. Ralf
Marc Haber
2006-Mar-24 09:00 UTC
[Pkg-exim4-users] From sendmail to exim - full name from gecos field of passwd?
On Fri, Mar 24, 2006 at 09:56:07AM +0100, Ralf Gruner wrote:> I made an experimental installation (smarthost, local delivery in > Maildir) and all seems to work, except that the old sendmail server uses > the full names from the gecos field of the passwd file to accept SMTP > mails. For example for my address it reads the first and last name and > accepts mails to ralf.gruner@... > > Can I use such a mechanism in Exim too?Yes. I have, however, never seen this actually done, so it looks like you''re on your own. spec.txt chapter 11 will show you what you need for the query. You''ll probably need a specially parametrized redirect router, so chapter 22 is a good idea as well. Start with the system_aliases router. Greetings Marc -- ----------------------------------------------------------------------------- Marc Haber | "I don''t trust Computers. They | Mailadresse im Header Mannheim, Germany | lose things." Winona Ryder | Fon: *49 621 72739834 Nordisch by Nature | How to make an American Quilt | Fax: *49 621 72739835
Christian Schmidt
2006-Mar-25 22:25 UTC
[Pkg-exim4-users] From sendmail to exim - full name from gecos field of passwd?
Hello Marc, Marc Haber, 24.03.2006 (d.m.y):> On Fri, Mar 24, 2006 at 09:56:07AM +0100, Ralf Gruner wrote: > > I made an experimental installation (smarthost, local delivery in > > Maildir) and all seems to work, except that the old sendmail server uses > > the full names from the gecos field of the passwd file to accept SMTP > > mails. For example for my address it reads the first and last name and > > accepts mails to ralf.gruner@... > > > > Can I use such a mechanism in Exim too? > > Yes. I have, however, never seen this actually done, so it looks like > you''re on your own. spec.txt chapter 11 will show you what you need > for the query. You''ll probably need a specially parametrized redirect > router, so chapter 22 is a good idea as well. > > Start with the system_aliases router.That''s the way I would do it, too. Create yourself a tiny perl or whatever script that creates corresponding entries for your aliases file from aour passwd file. Regards, Christian -- Ich wollte den Ball treffen, aber der Ball war nicht da. -- Anthony Yeboah (er hatte gegen Michael Schulz nachgetreten)
Marc Haber
2006-Mar-25 23:16 UTC
[Pkg-exim4-users] From sendmail to exim - full name from gecos field of passwd?
On Sat, Mar 25, 2006 at 01:21:39PM +0100, Christian Schmidt wrote:> Marc Haber, 24.03.2006 (d.m.y): > > On Fri, Mar 24, 2006 at 09:56:07AM +0100, Ralf Gruner wrote: > > > I made an experimental installation (smarthost, local delivery in > > > Maildir) and all seems to work, except that the old sendmail server uses > > > the full names from the gecos field of the passwd file to accept SMTP > > > mails. For example for my address it reads the first and last name and > > > accepts mails to ralf.gruner@... > > > > > > Can I use such a mechanism in Exim too? > > > > Yes. I have, however, never seen this actually done, so it looks like > > you''re on your own. spec.txt chapter 11 will show you what you need > > for the query. You''ll probably need a specially parametrized redirect > > router, so chapter 22 is a good idea as well. > > > > Start with the system_aliases router. > > That''s the way I would do it, too. > > Create yourself a tiny perl or whatever script that creates > corresponding entries for your aliases file from aour passwd file.I strongly assume that the indirection with a script is not necessary and that it is directly possible to do the lookup with the user database. Greetings Marc -- ----------------------------------------------------------------------------- Marc Haber | "I don''t trust Computers. They | Mailadresse im Header Mannheim, Germany | lose things." Winona Ryder | Fon: *49 621 72739834 Nordisch by Nature | How to make an American Quilt | Fax: *49 621 72739835
Christian Schmidt
2006-Mar-27 18:11 UTC
[Pkg-exim4-users] From sendmail to exim - full name from gecos field of passwd?
Hello Marc, Marc Haber, 26.03.2006 (d.m.y):> On Sat, Mar 25, 2006 at 01:21:39PM +0100, Christian Schmidt wrote: > > Marc Haber, 24.03.2006 (d.m.y): > > > On Fri, Mar 24, 2006 at 09:56:07AM +0100, Ralf Gruner wrote: > > > > I made an experimental installation (smarthost, local delivery in > > > > Maildir) and all seems to work, except that the old sendmail server uses > > > > the full names from the gecos field of the passwd file to accept SMTP > > > > mails. For example for my address it reads the first and last name and > > > > accepts mails to ralf.gruner@... > > > > > > > > Can I use such a mechanism in Exim too? > > > > > > Yes. I have, however, never seen this actually done, so it looks like > > > you''re on your own. spec.txt chapter 11 will show you what you need > > > for the query. You''ll probably need a specially parametrized redirect > > > router, so chapter 22 is a good idea as well. > > > > > > Start with the system_aliases router. > > > > That''s the way I would do it, too. > > > > Create yourself a tiny perl or whatever script that creates > > corresponding entries for your aliases file from aour passwd file. > > I strongly assume that the indirection with a script is not necessary > and that it is directly possible to do the lookup with the user > database.But what if there are 2 users with identical names? The "create_aliases" script could handle this, bit what about the direct lookup? Regards, Christian -- Wie man sein Kind nicht nennen sollte: Axel N?sse -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: Digital signature Url : http://lists.alioth.debian.org/pipermail/pkg-exim4-users/attachments/20060327/5faa7296/attachment.pgp
Ralf Gruner
2006-Mar-28 12:32 UTC
[Pkg-exim4-users] From sendmail to exim - full name from gecos field of passwd?
Christian Schmidt wrote: > But what if there are 2 users with identical names? The > "create_aliases" script could handle this, bit what about the direct > lookup? At least in my case this is not a problem, because the old configuration would have not worked for identical names. At the moment I am reading the docs to learn how the lookups work... Regards Ralf