[isf-wifidog] Solution: emails are not sent after registration

V Patel sgrlogs at gmail.com
Sam 12 Aou 15:20:45 EDT 2006

When I was testing wifidog three weeks ago this problem came up and I wanted
to post solution for those who have similar problem.

Problem: after installing wifidog, when a new user click on create new
account link and registers new username, wifidog suppose to send email and
allow 15-20 min access to confirm the email. my problem was user would
register successfully but the email never gets sent . I tried using
different email address including yahoo, gmail, hotmail(sucks) but none of
them work. So to figure out I looked at my sendmail logs (/var/log/maillog)
to see if email was really sent but it kept saying server timed out... After
searching hours for solution, I looked at my ISP's website (I have SBC-Yahoo
US) and it turns out they filter port 25, the default port for smtp server.
They only allowed authenticated emails. This is been implimented by many ISP
to fight spam email. They just dont want spam emails to be originated from
their network.

Solution: its quiet simple. After googling I found this guide for setting up
SMTP-AUTH Client for sendmail and postfix. Ref. Link:
  First I tried solution with sendmail but i wasn't successful since the
guide is based on SUSE linux and I am using Fedora Core 5. So i removed
sendmail and installed postfix. Postfix was easy to configure and worked
like charm. Here is the steps I followed for postfix. If you want to give it
a shot with sendmail go to the link above.


1. su to root and install Postfix

2. open /etc/postfix/main.cf file and add or edit following lines at end of

#using SMTP-AUTH-Client
smtp_sasl_auth_enable = yes
# setting plaintext password transport, this is what SBC allows,
# check with your ISP most likely plaintext. Keep value empty.
smtp_sasl_security_options =
# Hash file where password is stored.
smtp_sasl_password_maps = hash:/etc/postfix/sasl_passwd

3. now in main.cf edit the line that says "relayhost = [your.isp.smtp.server]"
<--- enclose your smtp server in bracket [].
for mine i have

relayhost = [smtp.pacbell.sbcyahoo.com]

4. save and exit
5. In /etc/postfix directory create new file and name it sasl_passwd and add
your username and password this way.

[your.isp.smtp.server]          username at yourisp.com:yourpassword

The guide does not have the smtp server enclosed in bracket but it didn't
work for me so i tried with brackets and it worked. If you're getting
problems with bracket, try removing it.

6. change the sasl_passwd file permission so other accounts on linux box
can't see the password.

chown root:root /etc/postfix/sasl_passwd

chmod 600 /etc/postfix/sasl_passwd

7. then execute following command to create hash file. This will hash file
called sasl_passwd.db in /etc/postfix

postmap /etc/postfix/sasl_passwd

8. reload postfix by executing following command.

postfix reload

That's it try sending emails by using mail command. Check your
/var/log/mailog to see if email was successfully sent and check your email.

Ref1: http://efflandt.freeshell.org/sbc-smtp-auth.html
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://listes.ilesansfil.org/pipermail/wifidog/attachments/20060812/a0e927e0/attachment.htm

Plus d'informations sur la liste de diffusion WiFiDog