1 message in net.sourceforge.lists.courier-users[courier-users] courier-imap and rela...
FromSent OnAttachments
Alexander BrunsAug 17, 2002 4:59 am 
Actions with this message:
Paste this link in email or IM:
Paste this link in email or IM:
Atom feed for this thread
Paste this URL into your reader:
Subject:[courier-users] courier-imap and relay-clientActions...
From:Alexander Bruns (mail@mail.ftk.de)
Date:Aug 17, 2002 4:59:40 am
List:net.sourceforge.lists.courier-users

I found a HOWTO at http://lists.em.ca/?command=showmsg&list=bgware&month=200206&msgnum=17 30&thr eadid=lanfmlapjgbconfglfkb

I have installed redhat 7.3, qmail 1.03, courier-imap 1.5.3 and relay-ctrl 3.1.1

I get it work, so that my ip is put in the directory /var/spool/relay-ctrl/allow and for 15 Minutes I can send mails via smtp.

But I tried the folowing: I make in the linux-shell a telnet to the server on port 110 or port 143. Then I say "HELO", say "USER alex" and then I give a wrong password. Then courier-imap says error, but my IP is free for relaying an my IP is shown under /var/spool/relay-ctrl/allow even if i login with wring password.

I put in the files /usr/lib/courier-imap/libexec/imapd.rc /usr/lib/courier-imap/libexec/imapd-ssl.rc /usr/lib/courier-imap/libexec/pop3d.rc /usr/lib/courier-imap/libexec/pop3d-ssl.rc

before the line

/usr/lib/courier-imap/libexec/couriertcpd -address=$ADDRESS \

the line /usr/local/bin/envdir /etc/relay-ctrl/ /usr/bin/relay-ctrl-chdir \

and in the /usr/lib/courier-imap/etc/imapd /usr/lib/courier-imap/etc/pop3d

I changed the lines from AUTHMODULES="authdaemon" to AUTHMODULES="authdaemon relay-ctrl-allow"

How Do I get it work that only after successfull login the ip is free for smtp with relay-ctrl?

Does anyone have any ideas as to what he's talking about? I'm really not sure what run file he's referring to.

/usr/lib/courier-imap/libexec/imapd.rc:

/usr/bin/env - /bin/sh -c " set -a ; . /usr/lib/courier-imap/etc/imapd ; \ . /usr/lib/courier-imap/etc/imapd-ssl ; \ IMAP_STARTTLS=$IMAPDSTARTTLS ; export IMAP_STARTTLS ; \ TLS_PROTOCOL=$TLS_STARTTLS_PROTOCOL ; \

/usr/lib/courier-imap/libexec/couriertcpd -address=$ADDRESS \

-stderrlogger=/usr/lib/courier-imap/libexec/l ogger \ -stderrloggername=imapd \ -maxprocs=$MAXDAEMONS -maxperip=$MAXPERIP \ -pid=$PIDFILE $TCPDOPTS \ $PORT \ /usr/bin/envdir /etc/relay-ctrl relay-ctrl-chdir \ /usr/lib/courier-imap/sbin/imaplogin $LIBAUTHMODULES \ /usr/lib/courier-imap/bin/imapd

Maildir"

but when I put this in all the files ( imapd.rc imapd-ssl.rc pop3d.rc pop3d-ssl.rc) the IP is opened for relaying and put in /var/spool/relay-ctrl/allow if I log in via pop3 or imap with wrin password or right password. The variable $AUTHENTICAED should be read by relay-ctrl-allow bit courier-imap seems to set it even if the login fails.

I am using courier-imap 1.5.3 with relay-ctrl 3.1.1

Same for imapd-ssl.rc and the pop3d's.

Has anyone an idea why the IP is allowed even if login fails?

Greetings.

Alex