Re: Question about stripping domain
Javier de Miguel Rodríguez <[email protected]>
| Newsgroups | gmane.mail.perdition.user |
|---|---|
| Organization | Servicio de Informática y Comunicacione s |
| Message-ID | <[email protected]> |
>> My problem: A new mailserver has MULTIPLE domains (@domain1, >> @domain2, @domain3). Mi popmap.re redirects connections to this host, >> but I need to redirect user1@domain1 [email protected], not only >> "user1" and "user2" to the back-end hosts. In few words: i do NOT want >> to strip the domain part to the backend server > Hi, > > I think that you need to either > 1. not use the U (username_from_database) option or; I have tried commenting this line (username_from_database) and restarting perdition with no luck: telnet myperditionhost 110 Trying XXXXX... Connected to myperditionhost. Escape character is '^]'. +OK POP3 Ready myperditionhost 0001d144 USER prueba@domain1 +OK USER prueba@domain1 set, mate PASS pass -ERR Re-Authentication Failure In the multidomain (dovecot-based) mail server: Oct 7 17:48:55 buzones_externos dovecot: pop3-login: Aborted login (auth failed, 1 attempts): user=<prueba>, method=PLAIN, rip=192.168.1.13, lip=192.168.1.161 As you can see, the backend server only get prueba, not prueba@domain1 If I try the telnet 110 directly against the backend server_ telnet 192.168.1.161 110 Trying 192.168.1.161... Connected to 192.168.1.161. Escape character is '^]'. +OK Multidomain host. USER prueba@domain +OK PASS pass +OK Logged in. This works okay. > 2. modify your popmap.re to add the domain. I have this in my popmap.re: (.*domain1): 192.168.1.161 And 192.168.1.161 is the internal ip address of the multidomain host. English is not my primary lang, maybe I am not explaining my problem clearly, if you need aditional info let me know. > In the case of 2, you can use back-references to > use the same domain that the user supplied. > ______________________________________________ Perdition-users mailing list [email protected] http://lists.vergenet.net/listinfo/perdition-users