Visit Jeremy's Blog.
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 11-22-2006, 12:20 AM   #1
LQ Newbie
Registered: Jul 2006
Posts: 2

Rep: Reputation: 0
How to setup an SMTP account in Postfix?


I have Postfix running and can send emails without problem from PHP via the mail() command. However, I want to use that SMTP server with my Outlook also, as my ISP's SMTP seems to be unreliable.

How do I setup a single SMTP account with username and password that can only be accessed from a certain IP address so that I can use it for sending my email from Outlook?

I know I need to change something in /etc/postfix/ but I couldn't understand much when going through the file.

Thanks a lot for the help! I really appreciate it!
Old 11-22-2006, 01:58 AM   #2
LQ Newbie
Registered: Jul 2006
Posts: 2

Original Poster
Rep: Reputation: 0
Hello again,

Actually, I managed to solve this myself, by adding

mynetworks =, my.ip.add.ress

to the configuration file. The problem is that it just authenticates me by IP address, but I would prefer also using username and password for better security. How do I implement this? Can anyone help me out?
Old 11-22-2006, 02:12 AM   #3
LQ Newbie
Registered: Jul 2006
Posts: 11

Rep: Reputation: 0
Search with postfix+smtp+auth you will get a lots of good how-tos. By configurating with saslauth this can be done.

Some starting points:

Last edited by nitinb; 11-22-2006 at 02:14 AM.
Old 11-22-2006, 08:06 AM   #4
Registered: Jun 2005
Location: On the top of the World
Posts: 114

Rep: Reputation: 15
ok setting up a SMTP server is not a problem but do remember if you are using RHEL 4 then you will have to use dovecot or any other service for POP accounts otherwise you will not be able to get your mails by pop service.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Why is PostFix sending mail using the email address of the smtp account? taigon Linux - Server 34 02-09-2007 01:09 AM
Postfix - Using for SMTP wfernley Linux - Newbie 3 12-29-2005 08:22 AM
Postfix and SMTP Phaethar Linux - Software 0 03-09-2004 08:29 AM
postfix smtp bas_vdl Linux - Networking 0 10-19-2003 04:24 PM
free pop3 / smtp account gusgorman General 3 06-01-2002 02:23 AM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 08:19 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration