[Pkg-exim4-users] Configure EXIM4 for SMTP AUTH
Simon Faulkner
simon at titanic.co.uk
Thu Oct 2 16:08:32 UTC 2008
Hannibal Ndlovu wrote:
> Hi All
>
> Am running DEBIAN 4, Kernel 2.6.18-6-686,
>
> i have installed - EXIM4, DOVECOT and within my local network users
> can send mail and works well but users try send mail when they are
> outside the local network their mail is not delivered and they get a
> message back saying
>
> "Relay not permited"
>
> I have been told i need to implement SMTP AUTH - i have tried a number
> of guides and nothing seems to work
*I AM NOT AN EXPERT*
but this "may" help...
from my wiki:
To use TLS
First, learn how to check SSL (works for apache too ;-)
apt-get install telnet-ssl
telnet -z ssl myserver.mycompany.co.uk 465
FOR MONOLITHIC CONFIG FILE
echo "MAIN_TLS_ENABLE = true" >> /etc/exim4/exim4.conf.localmacros
cp /usr/share/doc/exim4-base/examples/exim-gencert . - then run it!
dpkg-reconfigure exim4-config
Auth against /etc/shadow - not recommended but works ;-)
apt-get install sasl2-bin
vi /etc/default/saslauthd - set it to run on start
/etc/init.d/saslauthd start
usermod -a -G sasl Debian-exim - Add Debian-exim to sasl
Uncomment the lines
vi /etc/exim4/exim4.conf.template (beware - Outlook needs LOGIN not plain)
login_saslauthd_server:
driver = plaintext
public_name = LOGIN
server_prompts = "Username:: : Password::"
# don't send system passwords over unencrypted connections
server_condition = ${if saslauthd{{$auth1}{$auth2}}{1}{0}}
server_set_id = $auth1
.ifndef AUTH_SERVER_ALLOW_NOTLS_PASSWORDS
server_advertise_condition = ${if eq{$tls_cipher}{}{}{*}}
.endif
More information about the Pkg-exim4-users
mailing list