LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
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.

Notices

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

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


Hello,

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/main.cf 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
phph
LQ Newbie
 
Registered: Jul 2006
Posts: 2

Original Poster
Rep: Reputation: 0
Hello again,

Actually, I managed to solve this myself, by adding

mynetworks = 127.0.0.0/8, my.ip.add.ress

to the main.cf 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
nitinb
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 main.cf with saslauth this can be done.

Some starting points:

http://postfix.state-of-mind.de/patr...tter/smtpauth/
http://postfix.state-of-mind.de/patr...ilservers.html
http://kbase.redhat.com/faq/FAQ_81_3408.shtm
http://kbase.redhat.com/faq/FAQ_85_7929.shtm

Last edited by nitinb; 11-22-2006 at 02:14 AM.
 
Old 11-22-2006, 08:06 AM   #4
saini_mw
Member
 
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.
 
  


Reply


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


All times are GMT -5. The time now is 04:39 AM.

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