shanenin Posted February 22, 2006 Report Share Posted February 22, 2006 I decided to install postfix. I am stuck at the beginng configurationbelow is from a gentoo guideAfter 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.cfmyhostname = $host.domain.namemydomain = $domain.nameinet_interfaces = allmydestination = $myhostname, localhost.$mydomain $mydomainmynetworks = my.ip.net.work/24, 127.0.0.0/8home_mailbox = .maildir/local_destination_concurrency_limit = 2default_destination_concurrency_limit = 10what am I supposed to set the variables myhostname, mydomain, mydestination to?is this the domain they are talking abountshane@mainbox ~ $ cat /etc/hosts127.0.0.1 mainbox.roc.mn.charter.com mainbox localhostso is this correctmyhostname = mainbox.roc.mn.charter.commydomain = roc.mn.charter.commydestination = mainbox.roc.mn.charter.com, localhost.roc.mn.charter.com roc.mn.charter.comthen they have this linemynetworks = my.ip.net.work/24, 127.0.0.0/8am I supposed to change it to this, assumbing my default gateway is 192.168.1.1mynetworks = 192.168.1.0/24, 127.0.0.0/8thanks for any direction Quote Link to post Share on other sites
iccaros Posted February 22, 2006 Report Share Posted February 22, 2006 ya, that looks right.. Quote Link to post Share on other sites
iccaros Posted February 22, 2006 Report Share Posted February 22, 2006 are you using this guide http://www.gentoo.org/doc/en/virt-mail-howto.xml Quote Link to post Share on other sites
shanenin Posted February 22, 2006 Author Report Share Posted February 22, 2006 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 here is what I have tried, I am not sure where, if anywhere the mail is getting sentmutt -n rootthen 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] Quote Link to post Share on other sites
shanenin Posted February 22, 2006 Author Report Share Posted February 22, 2006 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.comX-Postfix-Queue-ID: 2D3DC21BEEDX-Postfix-Sender: rfc822; [email protected]Arrival-Date: Wed, 22 Feb 2006 10:39:35 -0600 (CST)Final-Recipient: rfc822; [email protected]Action: failedStatus: 5.0.0Diagnostic-Code: X-Postfix; Host or domain name not found. Name service error for name=mainbox.mainbox.roc.mn.charter.com type=A: Host not foundit is showing mainbox.mainbox Quote Link to post Share on other sites
iccaros Posted February 22, 2006 Report Share Posted February 22, 2006 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 Quote Link to post Share on other sites
shanenin Posted February 22, 2006 Author Report Share Posted February 22, 2006 (edited) if I manually type in the domain it worksmutt -n [email protected]if I do thismutt -n shaneit gets addressed to [email protected], I must have a setting screwed up somewhereedit added later//the mutt command will read my email. I found theat my email is stored in the directorty ~/.maildir Edited February 22, 2006 by shanenin Quote Link to post Share on other sites
shanenin Posted February 22, 2006 Author Report Share Posted February 22, 2006 I think the problem was I had my hostname included with this file/etc/conf.d/domainnameit wasDNSDOMAIN="mainbox.roc.mn.charter.com"I changed it to this now is seems to workDNSDOMAIN="roc.mn.charter.com" Quote Link to post Share on other sites
iccaros Posted February 22, 2006 Report Share Posted February 22, 2006 Quote Link to post Share on other sites
shanenin Posted February 24, 2006 Author Report Share Posted February 24, 2006 I am following this guide, http://www.gentoo.org/doc/en/virt-mail-howto.xmlI just finshed starting these services as described early in the guideCode 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 startthen it says to test what I just didStart 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? Quote Link to post Share on other sites
iccaros Posted February 24, 2006 Report Share Posted February 24, 2006 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.. Quote Link to post Share on other sites
shanenin Posted February 24, 2006 Author Report Share Posted February 24, 2006 (edited) telnet seems to be making connectionsSMTP is 25, IMAP is 143, POP3 is 110 Edited February 24, 2006 by shanenin Quote Link to post Share on other sites
shanenin Posted February 25, 2006 Author Report Share Posted February 25, 2006 i found this link, it does exactly what I need. It seems really simple alsohttp://forums.gentoo.org/viewtopic-t-31859...-fetchmail.html Quote Link to post Share on other sites
shanenin Posted February 26, 2006 Author Report Share Posted February 26, 2006 i found this link, it does exactly what I need. It seems really simple alsohttp://forums.gentoo.org/viewtopic-t-31859...-fetchmail.htmlwow 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. Quote Link to post Share on other sites
iccaros Posted February 26, 2006 Report Share Posted February 26, 2006 good work.. Quote Link to post Share on other sites
hitest Posted February 26, 2006 Report Share Posted February 26, 2006 Very cool, shanenin:-) Quote Link to post Share on other sites
shanenin Posted February 26, 2006 Author Report Share Posted February 26, 2006 (edited) 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 February 26, 2006 by shanenin Quote Link to post Share on other sites
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.