HELLO AND WELCOME! Before you can post your question, you'll have to register -- it's completely free and registered users see less advertising! If you just want to browse through the existing questions, just select the forum that you want to visit from the selection below. Otherwise, click here to register!. We highly recommend that you print a copy of our Guide for New Members. Enjoy!

SMTP Auth?

Hey all

So I have very little experience in the world of setting up an SMTP server, but I&#039;ve made some headway. In the process of exhausting google, I&#039;ve managed to get my SMTP server to a state where I can send email from any machine connected to my network (ie, within the 192.168.1.* domain). That&#039;s fantastic, as it means my laptop can now connect to my server to send email. However, I&#039;ve been trying to take the next step and have been seeing some trouble.

This server config works great for when I&#039;m kicking around the house, but ideally I&#039;d also like to use it from school. I&#039;d like to be able to log on to the school&#039;s wireless network and send emails by connecting to my server at home. I already have a dns associated with my server and I can ssh and ftp into it so I&#039;m able to target it without a problem. What I&#039;d like to do is configure sendmail so that instead of looking at the IP you&#039;re coming from, it asks for a username and password. I know it has something to do with SASL, and I&#039;ve checked to make sure that sendmail is configured to use SASL and that saslauthd is running.

Re:SMTP Auth?

I know this isn&#039;t the answer you are probably looking for but I still want to say it. You might want to move to postfix or qmail. They have better security histories and have simpler configuration files. I have done SMTP auth with postfix in a few diffrent ways (including using a database for authentication). If your not married to sendmail then I suggest one of the alternitives.

Re:SMTP Auth?

Ok I took your advice and installed postfix, and it&#039;s gotten me a hell of a lot further than sendmail ever did. Thanks! But now there&#039;s a different sort of problem that I can&#039;t for the life of me figure out.

Ok so postfix is up and running. I type &quot;telnet localhost 25&quot; and it greets me with its postfixy banner. I can test my auth services and send mail from the box so it&#039;s all good.

Then I try to telnet from another machine on my network (ie, mimick a mail client connecting to the server). I take down my firewall with /etc/init.d/iptables stop, and then this goes on:

Can anyone help me out as to why port 25 is closed to anyone outside of 127.0.0.1? Is it my postfix config? I was under the impression that anyone can connect to it, but only those that authenticate can use it. Am I drastically wrong here?

Re:SMTP Auth?

Re:SMTP Auth?

[quote author=Tyr_7BE link=board=4;threadid=9839;start=0#msg89309 date=1097017293]
Shebang it helped indeed! I checked out your PET as you recommended and found my inet_interfaces was set to localhost....kind of obvious now that I look at it, but it had me stumped.

Thank you both so much for this...I can finally send email again! Much karma to all!
[/quote]

Glad it worked out for you! (w00t -- about my PET).. Karma to you for saying my PET Helped!