Postfix configuration

Is there a way to set Postfix so that when a message, ether local or network, it be sent to the local mailbox so that I can read all my mail with the “mail” command? If not then I need help configuring postfix to work with Courier-imap, when I ran the “postqueue -p” I have noticed that every email sent by both the system and my trying to test in is siting in the queue because the /var/lib/imap/socket/imtp file or directory does not exist. I am also open to easier more reliable setup if anyone has any suggestions.

“We must plan for freedom, and not only for security, if for no other reason than only freedom can make security more secure.” Karl Popper

Out of the box postfix delivers to a local mailbox or maildir. You must have set it up to deliver using lmtp. You can read all about the postfix config variables at:

Postfix Documentation

There are some examples there.

ken yap wrote:

>
> Out of the box postfix delivers to a local mailbox or maildir. You must
> have set it up to deliver using lmtp. You can read all about the postfix
> config variables at:
>
> ‘Postfix Documentation’ (http://www.postfix.org/documentation.html)
>
> There are some examples there.
>
>
Well the how to I was following the first time is messed up, and according the to documentation most of the settings in my main.cf file are for some reason commented out so I am thinking that maybe it will be a good idea to restore the Postfix defaults.

“We must plan for freedom, and not only for security, if for no other reason than only freedom can make security more secure.” Karl Popper

I guess I should point this out my desired end result is postfix running as the MTA, ther IMAP support or just mail be put in the maildir format so I can get it locally or via ssh, system mail working again (so I can get reports from AppArmor and seccheck, and any cron jobs), and mail able to be received, and hopefully sent from my dynamic dns, according to the person from dyndns that I talked to as long as my mail server is where the IP they have is pointing to I don’t need to set up a MX record and it will work. Anti virus scanning, and spam filtring. I guess this info will help everyone know what I am trying for here in my first attempt for a mail server.

vendion wrote:

Well after running “postconf -d” system and local mail is still not working and that should have restored all the default settings for postfix. Help?

“We must plan for freedom, and not only for security, if for no other reason than only freedom can make security more secure.” Karl Popper

Reinstall the postfix packages to get the default OpenSUSE settings. IIRC there are only a handful of settings you need to change to accept network mail.

ken yap wrote:

>
> Reinstall the postfix packages to get the default OpenSUSE settings.
> IIRC there are only a handful of settings you need to change to accept
> network mail.
>
>
Ok thanks, and do you know if the clam-AV mail plug-in and spam assassin works out of the box with postfix for server side filtering or is that something I will have to set up?

“We must plan for freedom, and not only for security, if for no other reason than only freedom can make security more secure.” Karl Popper

You have to make a handful of edits to config files, like amavis.conf which coordinates the spam filter and virus scanners. Sorry I can’t point you to any tutes, I just made it work by following the comments in the config files and by knowing how the parts collaborate, based on those webpages you have been reading, and didn’t take notes.

Ok well I don’t know if this is something I should worry about, after reinstalling postfix-2.5.1-28.1 I saw this warning in SuSEconfig

Executing /sbin/conf.d/SuSEconfig.postfix…
*** WARNING ***
Found /etc/postfix/master.cf.SuSEconfig, exiting…
*** WARNING ***

Is that something that can be ignored or do I need to get rid of master.cf.SuSEconfig and let it recreate what is needed?

It means it has detected that you have a modified main.cf (which is not overwritten even on a reinstall). The easiest way to start from scratch is probably to

rm -fr /etc/postfix

, then reinstall the postfix package.