LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   How to setup an SMTP account in Postfix? (https://www.linuxquestions.org/questions/linux-software-2/how-to-setup-an-smtp-account-in-postfix-503804/)

phph 11-22-2006 12:20 AM

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!

phph 11-22-2006 01:58 AM

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?

nitinb 11-22-2006 02:12 AM

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

saini_mw 11-22-2006 08:06 AM

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.


All times are GMT -5. The time now is 11:21 AM.