Re: Question about stripping domain

Simon Horman <[email protected]>
Newsgroups gmane.mail.perdition.user
Message-ID <[email protected]>
On Sun, Oct 17, 2010 at 04:50:57PM +0200, Javier de Miguel Rodríguez wrote:
> 
> >user abc@domain1
> >+OK USER abc@domain1 set, mate
> >pass abc
> >-ERR failed: Could not determine server
> >Oct 17 09:09:53 perdition[19887]: Auth: client-secure=plaintext authorisation_id=NONE authentication_id="abc@domain1" server="(null):pop3" protocol=POP3 server-secure=plaintext status="failed: Could not determine server"
> >
> 
>     I am going to explain it with the real domains involved and my
> real config file:
> 
> Perdition version: perdition-1.17-1
> 
> 
>  perdition -i -F - -M /usr/lib/libperditiondb_posix_regex.so
> 
> /Oct 17 16:43:08 perdition[29321]: Connect: inetd_pid=28275
> +OK POP3 Ready e_entrada1 0001cbb7
> USER [email protected]
> +OK USER [email protected] set, mate
> PASS XXXX
> -ERR Re-Authentication Failure/
> 
> 
> In the backend server:
> 
> /Oct 17 16:43:41 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
> /
> You can see that to the backend server does not arrive the @lynzos.com part.

Hi Javier,

I'm really not sure why you are seeing this problem, its certainly not what
I am seeing. I'm using the perdition 1.17.1-2 from Debian lenny
(which is basically 1.17). My session log is below, followed by my
perdition.conf and popmap.re.


$ /usr/sbin/perdition -i -F - -M /usr/lib/libperditiondb_posix_regex.so.0 -m ~/tmp/popmap.re -f ~/tmp/perdition.conf
Oct 18 14:34:33 perdition[32059]: version=1.17.1, add_domain="servername_lookup,1", authenticate_in=off, bind_address="0.0.0.0", capability="IMAP4 IMAP4REV1", client_server_specification=off, config_file="/home/horms/tmp/perdition.conf", connection_limit=0, connection_logging=on, connect_relog=300, debug=on, domain_delimiter="@", explicit_domain="", group="nobody", inetd_mode=on, listen_port="110", log_facility="-", login_disabled=off, lower_case="servername_lookup", map_library="/usr/lib/libperditiondb_posix_regex.so.0", map_library_opt="/home/horms/tmp/popmap.re", no_bind_banner=on, no_daemon=on, no_lookup=on, nodename="joe", ok_line="Hola", outgoing_port="110", outgoing_server="", pid_file="/var/run/perdition.pop3/perdition.pop3.pid", protocol="POP3", server_resp_line=on, strip_domain="", timeout=1800, username="nobody", username_from_database=on, query_key="\U,+default@\d", quiet=on, ssl_mode="", ssl_ca_file="", ssl_ca_path="/etc/perdition/perdition.ca/", ssl_ca_accept_self_signed="off", ssl_cert_file="/etc/perdition/perdition.crt.pem", ssl_cert_accept_expired="off", ssl_cert_not_yet_valid="off", ssl_cert_self_signed="off", ssl_cert_verify_depth=9, ssl_key_file="/etc/perdition/perdition.key.pem", ssl_listen_ciphers="", ssl_outgoing_ciphers="", ssl_no_cert_verify="off", ssl_no_cn_verify="off", (ssl_mask=0x00000000) (mask=0x00063400 00000000)

Oct 18 14:34:33 perdition[32059]: Connect: inetd_pid=28283
Oct 18 14:34:33 perdition[32059]: SELF:   "+OK POP3 Ready joe 0001d7c3\r\n"
+OK POP3 Ready joe 0001d7c3
user [email protected]
Oct 18 14:34:36 perdition[32059]: CLIENT: "user [email protected]\n"
Oct 18 14:34:36 perdition[32059]: SELF:   "+OK USER [email protected] set, mate\r\n"
+OK USER [email protected] set, mate
pass xxx
Oct 18 14:34:39 perdition[32059]: CLIENT: "pass xxx\n"
Oct 18 14:34:39 perdition[32059]: username_add_domain: username_add_domain 1 1 (nil)
Oct 18 14:34:39 perdition[32059]: getserver_key_str: "\U"->"[email protected]"
Oct 18 14:34:39 perdition[32059]: username_add_domain: username_add_domain 1 4 (nil)
Oct 18 14:34:39 perdition[32059]: REAL:   "+OK Dovecot ready.\r\n"
Oct 18 14:34:39 perdition[32059]: SELF:   "USER [email protected]\r\n"
Oct 18 14:34:39 perdition[32059]: REAL:   "+OK\r\n"
Oct 18 14:34:39 perdition[32059]: SELF:   "PASS xxx\r\n"
Oct 18 14:34:44 perdition[32059]: REAL:   "-ERR Authentication failed.\r\n"
Oct 18 14:34:44 perdition[32059]: SELF:   "QUIT\r\n"
Oct 18 14:34:49 perdition[32059]: REAL:   "+OK Logging out\r\n"
Oct 18 14:34:52 perdition[32059]: SELF:   "-ERR Authentication failed.\r\n"
-ERR Authentication failed.
Oct 18 14:34:52 perdition[32059]: Auth: user="[email protected]" server="127.0.0.1" port="110" status="failed: Re-Authentication Failure"

---- begin perdition.conf ----
add_domain servername_lookup,1
#authenticate_in
no_bind_banner
bind_address 0.0.0.0
connection_logging
connect_relog 300
#client_server_specification
D @
d
F mail
g nobody
I IMAP4 IMAP4REV1
i
L 0
listen_port 110
#login_disabled
lower_case servername_lookup
#map_library /usr/lib/libperditiondb_gdbm.so
#map_library_opt
no_daemon
n
O Hola
server_resp_line
protocol POP3
outgoing_port 110
#pid_file /var/run/perdition/perdition.pid
pid_file /var/run/perdition.pop3/perdition.pop3.pid
#pid_file /var/run/perdition.pop3s/perdition.pop3s.pid
#pid_file /var/run/perdition.imap4/perdition.imap4.pid
#pid_file /var/run/perdition.imap4s/perdition.imap4s.pid
t 1800
u nobody
username_from_database
q
query_key "\\U,+default@\\d"
#ssl_mode ssl_all
#ssl_ca_chain_file /etc/perdition/perdition.ca.pem
#ssl_ca_file /etc/perdition/perdition.ca.pem
#ssl_ca_path /etc/perdition/perdition.ca/
#ssl_ca_accept_self_signed
#ssl_cert_file /etc/perdition/perdition.crt.pem
#ssl_cert_accept_self_signed
#ssl_cert_accept_expired
#ssl_cert_accept_not_yet_valid
#ssl_cert_verify_depth 9
#ssl_key_file /etc/perdition/perdition.key.pem
#ssl_listen_ciphers "ALL:!ADH:RC4+RSA:+SSLv2:@STRENGTH"
#ssl_outgoing_ciphers "ALL:!ADH:RC4+RSA:+SSLv2:@STRENGTH"
#ssl_no_cert_verify
#ssl_no_cn_verify
---- end perdition.conf ----

---- begin popmap.re ----
(.*lynzos.com): 127.0.0.1
---- end popmap.re ----
______________________________________________
Perdition-users mailing list
[email protected]
http://lists.vergenet.net/listinfo/perdition-users
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.