Postfix Configuration


Recommended Posts

I decided to install postfix. I am stuck at the beginng configuration

below is from a gentoo guide

After postfix is installed, it's time to configure it. Change the following options in /etc/postfix/main.cf:

Code Listing 2.2: /etc/postfix/main.cf

myhostname = $host.domain.name
mydomain = $domain.name
inet_interfaces = all
mydestination = $myhostname, localhost.$mydomain $mydomain
mynetworks = my.ip.net.work/24, 127.0.0.0/8
home_mailbox = .maildir/
local_destination_concurrency_limit = 2
default_destination_concurrency_limit = 10

what am I supposed to set the variables myhostname, mydomain, mydestination to?

is this the domain they are talking abount

shane@mainbox ~ $ cat /etc/hosts
127.0.0.1 mainbox.roc.mn.charter.com mainbox localhost

so is this correct

myhostname = mainbox.roc.mn.charter.com
mydomain = roc.mn.charter.com
mydestination = mainbox.roc.mn.charter.com, localhost.roc.mn.charter.com roc.mn.charter.com

then they have this line

mynetworks = my.ip.net.work/24, 127.0.0.0/8

am I supposed to change it to this, assumbing my default gateway is 192.168.1.1

mynetworks = 192.168.1.0/24, 127.0.0.0/8

thanks for any direction

Link to post
Share on other sites

yup, i sure am. even following the guide, it is very hard for me to understand wht they wnat me to do. I am at the point of starting postfix. I am trying to use mutt to send an email to root(to test it). I am not even sure if I need to set up a mailbox to recieve :wacko:

here is what I have tried, I am not sure where, if anywhere the mail is getting sent

mutt -n root

then it promts me to enter a subject, and opens up my default text editer to write a message. I then enter y to send. At this point I am not sure where the mail is going, if anywhere.

the mail is getting addressed to

[email protected]

Link to post
Share on other sites

this seems to be part of the problem. My domain seems screwed up

					   The Postfix program

<[email protected]>: Host or domain name not found. Name
service error for name=mainbox.mainbox.roc.mn.charter.com type=A: Host not
found

[-- Attachment #2: Delivery report --]
[-- Type: message/delivery-status, Encoding: 7bit, Size: 0.4K --]

Reporting-MTA: dns; mainbox.roc.mn.charter.com
X-Postfix-Queue-ID: 2D3DC21BEED
X-Postfix-Sender: rfc822; [email protected]
Arrival-Date: Wed, 22 Feb 2006 10:39:35 -0600 (CST)

Final-Recipient: rfc822; [email protected]
Action: failed
Status: 5.0.0
Diagnostic-Code: X-Postfix; Host or domain name not found. Name service error
for name=mainbox.mainbox.roc.mn.charter.com type=A: Host not found

it is showing mainbox.mainbox

Link to post
Share on other sites

I'll have to read up on postfix.. I don't use it.. I would think that you would use mutt to see if root get an email. or just use the mail comamnd as root and see if they have mail

Link to post
Share on other sites

if I manually type in the domain it works

mutt -n [email protected]

if I do this

mutt -n shane

it gets addressed to [email protected], I must have a setting screwed up somewhere

edit added later//

the mutt command will read my email. I found theat my email is stored in the directorty ~/.maildir

Edited by shanenin
Link to post
Share on other sites

I am following this guide,

http://www.gentoo.org/doc/en/virt-mail-howto.xml

I just finshed starting these services as described early in the guide

Code Listing 3.3: Start the courier services you need.

# /etc/init.d/courier-imapd start
# /etc/init.d/courier-imapd-ssl start
# /etc/init.d/courier-pop3d start
# /etc/init.d/courier-pop3d-ssl start

then it says to test what I just did

Start up your favorite mail client and verify that all connections you've started work for receiving and sending mail. Now that the basics work, we're going to do a whole bunch of stuff at once to get the rest of the system running. Again, please verify that what we've installed already works before progressing.

how do I test if those indivdual services are working correctly?

Link to post
Share on other sites

use your emil clint, set up a pop connection test send, recv mail. then using th software create a imap account (i guess this would be called connections, not accounts) test..

good?

the other way (can't remember ports) is to telnet to the ports for each protocal and see if it responds to commands..

Link to post
Share on other sites
i found this link, it does exactly what I need. It seems really simple also

http://forums.gentoo.org/viewtopic-t-31859...-fetchmail.html

wow this was the easy. I had an imap server working in just a few minutes. I made a cron job that checks for new emails every 2 minutes. if it finds any it will download them to my imap server. Now i can access my emails from any computer that was an imap capable mail client.

Link to post
Share on other sites

My original attempt at the full blown mail/imap server was overwelming. I am not sure I had the motivation to even complete it. I was pretty confused by most of the config. I suppose with enough time I could have gotten it figured out.

Then I found this simple method to use fetchmail to grab my email, and place them in my imap server. Their was virtually no config nessesary, it just worked.

Edited by shanenin
Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...