LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 06-04-2008, 03:51 AM   #1
CoolCow
LQ Newbie
 
Registered: May 2008
Posts: 8

Rep: Reputation: 0
Postfix + imap without mysql


Hello,

I'm having troubles configuring postfix with imap support.
I've used this tutorial to install postfix with imap.
But now i'm wondering if i can create users without using mysql for storing the accounts.
I only need 3 users and postfix should run as fast as possible, that's why i don't want to use mysql.

Is this possible, or is mysql required once imap is used?
 
Old 06-04-2008, 04:33 AM   #2
billymayday
LQ Guru
 
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678

Rep: Reputation: 122Reputation: 122
Where does the tutorial even mention mysql?

Postfix by default will pick up unix style users from /etc/passwd, so add those users using useradd and their mail should appear in /home/their_username/Maildir.

fyi, mysql isn't a default option as far as I recall, and the RH packages don't come with it in any case. here's a snippet from the postfix site on making with mysql support

Code:
make -f Makefile.init makefiles \
    'CCARGS=-DHAS_MYSQL -I/usr/local/mysql/include' \
    'AUXLIBS=-L/usr/local/mysql/lib -lmysqlclient -lz -lm'
 
Old 06-04-2008, 05:12 AM   #3
CoolCow
LQ Newbie
 
Registered: May 2008
Posts: 8

Original Poster
Rep: Reputation: 0
I'm sorry, i mixed up the tuts i used, it was this one.

Now i already created the users when i first started postfix without courier imap (as discribed in another tut) but that doesn't seem to work.

When i try to telnet imap i get this:
Code:
# telnet localhost imap
Trying 127.0.0.1...
Connected to localhost.localdomain (127.0.0.1).
Escape character is '^]'.
* OK [CAPABILITY IMAP4rev1 UIDPLUS CHILDREN NAMESPACE
THREAD=ORDEREDSUBJECT THREAD=REFERENCES SORT QUOTA IDLE ACL ACL2=UNION
STARTTLS] Courier-IMAP ready. Copyright 1998-2008 Double Precision,
Inc.  See COPYING for distribution information.
X login mailer ***masked***
* BYE [ALERT] Fatal error: Maildir: No such file or directory
Connection closed by foreign host.
So there's still something wrong with the users.
And when i look at /home/mailer there is no Maildir directory...
 
Old 06-04-2008, 05:15 AM   #4
billymayday
LQ Guru
 
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678

Rep: Reputation: 122Reputation: 122
Create

~/Maildir
~/Maildir/cur
~/Maildir/new
~/Maildir/tmp

where ~ = /home/relevant_username

all owned by the user and permissions 700

Last edited by billymayday; 06-04-2008 at 05:17 AM.
 
Old 06-04-2008, 06:46 AM   #5
CoolCow
LQ Newbie
 
Registered: May 2008
Posts: 8

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by billymayday View Post
Create

~/Maildir
~/Maildir/cur
~/Maildir/new
~/Maildir/tmp

where ~ = /home/relevant_username

all owned by the user and permissions 700
Thnx, that did the trick, must of missed something in the tut.

Another postfix related question.
I'm using imap with php. When i login using the imap_open function in php i must provide the /notls option.
Is is possible to disable ssl/tls by default?
 
Old 06-04-2008, 06:53 AM   #6
billymayday
LQ Guru
 
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678

Rep: Reputation: 122Reputation: 122
Probably, but I use dovecot not courier-imap, so I can't help you there
 
Old 06-05-2008, 03:27 AM   #7
CoolCow
LQ Newbie
 
Registered: May 2008
Posts: 8

Original Poster
Rep: Reputation: 0
One last thing

Postfix is running perfectly but there's one configuration problem i can't seem to find.

Using SMTP i only want postfix to allow e-mails being sent from localhost and/or a certain domain.
I've tried enabling smtpd_reject_unlisted_sender but i still can send from any domain.

e.g.: the MAIL FROM: should only allow <variable>@my-domain.com
 
  


Reply



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
Postfix /Courier-imap/MySQL Auth errors, FC5 danrfxz Linux - Networking 1 11-06-2006 06:56 PM
fedora 5, postfix, courier-imap and mysql mmoor Fedora 8 05-15-2006 02:04 PM
Postfix + MySQL + Courier-Imap - can not find the maildir chakkerz Linux - Software 1 01-24-2005 09:32 PM
postfix + courier-imap + mysql tej Linux - Networking 3 09-01-2004 02:43 AM
Postfix-MySQL-Courier IMAP - Permission denied abapdr Linux - Software 0 06-24-2004 03:51 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

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

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration