Results 1 to 16 of 16
  1. #1
    Join Date
    Sep 2005
    Location
    India
    Posts
    750

    Need help setting up SMTP on VPS

    Hello,

    I need to send out emails from my VPS and have looked through numerous articles/tutorials and downright confused with MTAs/MDAs/LDAs/Mail Server etc.

    Can someone point me to resource which will explain how all these softwares tie up?

    Also, I just need to send out email from my VPS. I don't need POP3/IMAP. What would be simplest way of doing this? Which application should I use?

    Thanks,
    Jatinder
    Darsh Web Solutions : Web Design, PHP Development, E-Commerce Solutions

    PHP Tutorials : Tutorials and scripts for beginners

  2. #2
    Join Date
    Aug 2007
    Location
    Augusta, GA
    Posts
    209
    Only ones that I know of that would use something like outlook express and so on run on Windows http://www.softstack.com/freesmtp.html is an example of one. Maybe some Linux Gurus will come along and post something that will help out. Other than using something like exim, which is something you are not wanting to use.
    www.MyWinsVPS.com - Quality Engineered Linux/Windows 2003/2008 Dedicated VPS Provider - "VDS/VPS Setup AVAILABLE!!!"
    No Overloading of Machines, Dedicated Burstable Port Speeds, CPU, Ram, and HD - Now Offering Linux CentOS

  3. #3
    simple sendmail will do
    HalfDedi.com Half Dedicated Half Price
    We provide affordable VPS hosting solution Singapore datacenter

  4. #4
    Join Date
    Apr 2008
    Location
    Tulsa, OK, USA
    Posts
    372
    postfix is a good option. especially on Debian, where it asks a few questions and then generates a relatively secure config for you to use.

  5. #5
    Join Date
    Jun 2008
    Posts
    1,471
    If you just need to send outgoing mail, sendmail works just fine for that.

  6. #6
    Join Date
    Sep 2005
    Location
    India
    Posts
    750
    simple sendmail will do
    If you just need to send outgoing mail, sendmail works just fine for that.
    I have read at a number of places that sendmail is difficult to configure. I don't need to send too many emails and need something that is easy to setup and secure.
    Darsh Web Solutions : Web Design, PHP Development, E-Commerce Solutions

    PHP Tutorials : Tutorials and scripts for beginners

  7. #7
    Join Date
    Jul 2009
    Location
    Singapore
    Posts
    50
    Regular sendmail will do the job just fine, and if that isn't installed by default in the distribution you're using, postfix is a better choice.
    Which distribution are you using?
    Roy Lee
    ConceptLane Pte Ltd
    Singapore Hosting, VPS, Colo, Dedi, Web Apps

  8. #8
    Join Date
    Jun 2008
    Posts
    1,471
    Quote Originally Posted by Jatinder View Post
    I have read at a number of places that sendmail is difficult to configure. I don't need to send too many emails and need something that is easy to setup and secure.
    Its very easy to setup. After you install it (yum or apt-get), start it up and its able to send outgoing mail no problem. As for security, firewall it off from the public internet and its secured.

  9. #9
    Join Date
    Feb 2005
    Location
    Australia
    Posts
    5,842
    Have you actually checked to see if sendmail is already installed and working? It's there by default in most distros. Try:
    Code:
    echo "hello world" |mail -s "test message" [email protected]
    Chris

    "Some problems are so complex that you have to be highly intelligent and well informed just to be undecided about them." - Laurence J. Peter

  10. #10
    Join Date
    Feb 2008
    Location
    Houston, Texas, USA
    Posts
    2,955
    Hi,

    Here's the only guide that you need to accomplish this with Postfix+Cyrus-SASL. No pop before SMTP or IP ACL required:

    http://postfix.state-of-mind.de/patr...ilclients.html

    Good luck
    UNIXy - Fully Managed Servers and Clusters - Established in 2006
    [ cPanel Varnish Nginx Plugin ] - Enhance LiteSpeed and Apache Performance
    www.unixy.net - Los Angeles | Houston | Atlanta | Rotterdam
    Love to help pro bono (time permitting). joe > unixy.net

  11. #11
    Join Date
    Sep 2005
    Location
    India
    Posts
    750
    Quote Originally Posted by UNIXy View Post
    Hi,

    Here's the only guide that you need to accomplish this with Postfix+Cyrus-SASL. No pop before SMTP or IP ACL required:

    http://postfix.state-of-mind.de/patr...ilclients.html

    Good luck
    Thanks a lot for the link. I have decided to go with Postfix. Seems to be easy enough to configure.
    Darsh Web Solutions : Web Design, PHP Development, E-Commerce Solutions

    PHP Tutorials : Tutorials and scripts for beginners

  12. #12
    Join Date
    Feb 2008
    Location
    Houston, Texas, USA
    Posts
    2,955
    Quote Originally Posted by Jatinder View Post
    Thanks a lot for the link. I have decided to go with Postfix. Seems to be easy enough to configure.
    Keep us posted on how things go with the config. Hopefully the above worked.

    Best
    UNIXy - Fully Managed Servers and Clusters - Established in 2006
    [ cPanel Varnish Nginx Plugin ] - Enhance LiteSpeed and Apache Performance
    www.unixy.net - Los Angeles | Houston | Atlanta | Rotterdam
    Love to help pro bono (time permitting). joe > unixy.net

  13. #13
    Join Date
    Sep 2005
    Location
    India
    Posts
    750
    I have managed to configure Postfix for local only mail delivery. I used the below config:

    Code:
    relayhost =
    mynetworks = 127.0.0.0/8 [::ffff:127.0.0.0]/104 [::1]/128
    mailbox_command = procmail -a "$EXTENSION"
    inet_interfaces = loopback-only
    default_transport = error
    relay_transport = error
    Can anyone please confirm whether the above config is correct and that my server is not open to Internet?

    Also please suggest a user friendly and small footprint POP server. I am running on a Debian VPS.

    Thanks,
    Jatinder
    Darsh Web Solutions : Web Design, PHP Development, E-Commerce Solutions

    PHP Tutorials : Tutorials and scripts for beginners

  14. #14
    Join Date
    Jul 2009
    Location
    Singapore
    Posts
    50
    Yes, the above config looks correct. As long as you can't
    Code:
    telnet <VPS IP> 25
    you're fine.

    For POP, why not just stick to using postfix, since it's already running anyway?
    Also, I think Debian doesn't like multiple smtp/pop3 daemons installed at the same time, unless you want to go out of the way to force installation or compile one yourself. Honestly though, I've never explored that, so maybe someone else who's done it will share their knowledge with you.
    Using postfix's pop3 facility means you'll have to open it to the internet. One way is to use iptables to block port 25 from the world.
    Roy Lee
    ConceptLane Pte Ltd
    Singapore Hosting, VPS, Colo, Dedi, Web Apps

  15. #15
    Join Date
    Mar 2009
    Location
    Austin Tx
    Posts
    2,001
    If you are just sending via scripts, you should be good to go w/ sendmail / postfix.
    You can test with the "mail" command line from the shell...

    mail [email protected]
    Subject: (give it one)
    Type a short message
    enter "." on a line by itself to end message.
    Hit enter again at CC: (to bypass)

    Check you mail, see if you got it...if you didn't, look in your maillog to see what went wrong.
    This is the best signature in the world....Tribute!
    (It is not the best signature in the world, no. This is just a tribute)

  16. #16
    Join Date
    Aug 2004
    Location
    Shanghai
    Posts
    1,449
    Just a small advise. If you plan on ONLY sending, and not receive a single email, then you might want considering firewalling your port 25, or at least rate limit it a lot.

    Thomas
    GPLHost:>_ open source hosting worldwide (I'm founder, CEO & official Debian Developer)
    Servers & our leading control panel and our Xen VPS hosting, which are already included in Debian and Ubuntu
    Available in: Kuala Lumpur, Singapore, Sydney, Seattle, Atlanta, Paris, London, Barcelona, Zurich, Israel

Similar Threads

  1. ihost - setting up SMTP... how?
    By Bollarky in forum Hosting Security and Technology
    Replies: 3
    Last Post: 05-27-2008, 02:56 PM
  2. Setting up SMTP server
    By kopite in forum Programming Discussion
    Replies: 7
    Last Post: 05-23-2008, 05:55 AM
  3. Setting up SMTP Authentication? Need Help.
    By StackHost in forum Hosting Security and Technology
    Replies: 17
    Last Post: 12-25-2005, 11:48 AM
  4. Need Help Setting up SMTP on win2k3 server
    By chatnoir in forum Employment / Job Offers
    Replies: 1
    Last Post: 04-25-2005, 07:13 PM
  5. setting up SMTP relay
    By kellyboyce in forum Hosting Security and Technology
    Replies: 1
    Last Post: 04-07-2004, 09:23 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •