Click to See Complete Forum and Search --> : need a good postfix howto/nhf...


theartofbone
07-14-2002, 05:25 PM
I have a static ip, rh7.1, and postfix installed... that's about it. :)

I am totally lost in the configs and don't know what to do, so someone help me out... Do I even have the requirements to have your own small mail server to send/receive mail? I am able to send mail from my linuxbox but not receive. Here's a preview of what I got when I was testing...

From :
root <root@localhost.localdomain>

To :
<theartofbone@hotmail.com>

Subject :
test123???

Date :
Sun, 14 Jul 2002 15:56:43 -0700 (MST)

MIME-Version: 1.0
Received: from lc-cv.com ([67.41.7.145]) by mc2-f17.law16.hotmail.com with Microsoft SMTPSVC(5.0.2195.4905); Sun, 14 Jul 2002 12:49:10 -0700
Received: by lc-cv.com (Postfix, from userid 0)id 04BE59CEE; Sun, 14 Jul 2002 15:56:43 -0700 (MST)
Received: from localhost (localhost [127.0.0.1])by lc-cv.com (Postfix) with ESMTP id F4120BC4Ffor <theartofbone@hotmail.com>; Sun, 14 Jul 2002 15:56:43 -0700 (MST)
Message-ID: <Pine.LNX.4.33.0207141556340.1155-100000@localhost.localdomain>
Return-Path: root@localhost.localdomain
X-OriginalArrivalTime: 14 Jul 2002 19:49:10.0427 (UTC) FILETIME=[85B326B0:01C22B6F]

wasup.. testing.




I have the domain lc-cv.com as mine, and recently changed the name server from something to my ip since I am now hosting that website (although its not workin...). You can connect if you type the ip but if you type the url lc-cv.com, it'll take you to my old host. But anyway, thats a diff problem. For now I want to get this mail thing going... so anyone got any ideas?

And obviously when I hit reply on my hotmail account I couldn't get through. And I had to literally wait ages to send that email as root over to hotmail (hadto login twice via ssh to leave the original one sending.. pine got stuck under "Sending" but i left it and resumed work in a new session and it finally got through)

fancypiper
07-14-2002, 05:29 PM
Mail the Linux Way (http://www.mandrakeuser.org/docs/connect/index.html#mtuw)

theartofbone
07-14-2002, 05:37 PM
Thanks for the reply fancypiper... I will read through and hopefully get everything workin.. but for now I've got a quick question... how do you usually uninstall programs that were compiled from source? I installed vorpal mail, how do I go about uninstalling it? I'm gonna keep postfix.

fancypiper
07-14-2002, 05:44 PM
Read the doc files in the source program. Sometimes you can make uninstall. Otherwise, you will just have to find where it places itsself during install (under /usr somewhere, usually) and delete that directory and the file it put in /bin and the configs generated somewhere in /etc.

The stuff not in the prog directory (except manbe the executable in one of the /bin directories) are fairly small and don't take up much room.

theartofbone
07-14-2002, 06:20 PM
Thanks again. I got it removed I guess... now back to postfix. ;) I can not send any mail whatsoever now, not even local.. =P I tried "mail -s test root@localhost" and it sits for a while till i ctrl + c it.

And.. at least now when i do "service postfix restart" i get an OK. before I'd get a fail, so I guess I'm movin along... but once again fancypiper, thanks, and if you know of anyone who's done this before especially with rh71, invite em into this thread. ;)

take care,
Rob

fancypiper
07-14-2002, 06:33 PM
I have heard that's easier to configure, but I haven't found it so or I couldn't findinstructions I could follow, one or the other .

If you want to try sendmail, here is my sendmail.mc file for you to study.divert(-1)
dnl This is the macro config file used to generate sendmail.cf
dnl file. If you modify this file you will have to regenerate
dnl sendmail.cf by running this macro config through the m4
dnl preprocessor:
dnl
dnl m4 /home/phil/Documents/sendmail.mc > /etc/sendmail.cf
dnl
dnl You will need to have the sendmail-cf RPM installed for this
dnl to work, if you use an rpm build of sendmail
dnl
dnl include(`../m4/cf.m4')
dnl
dnl If you compile sendmail from a tarball, use the include above.
dnl In this setup, you should create the file as cf/cf/config.mc
dnl (in the sendmail source tree: eg. /usr/src/sendmail-8.11.6/cf/cf
dnl Now give the command "sh Build config.cf". Now copy the file
dnl config.cf as /etc/mail/sendmail.cf (please backup first!)
dnl
dnl If you are using the RPM build of sendmail, use the
dnl include statement given below instead
dnl
include(`/usr/share/sendmail-cf/m4/cf.m4')
define(`confDEF_USER_ID',``8:12'')
OSTYPE(`linux')
undefine(`UUCP_RELAY')
undefine(`BITNET_RELAY')
define(`confCF_VERSION',`dialup-1.3')
define(`SMART_HOST', `smtp.infoave.net')
define(`confAUTO_REBUILD')
define(`confTO_CONNECT', `1m')
define(`confTO_IDENT',0)
define(`confTRY_NULL_MX_LIST',true)
define(`confDONT_PROBE_INTERFACES',true)
define(`confCON_EXPENSIVE',true)
define(`confDELIVERY_MODE', `queued')
define(`PROCMAIL_MAILER_PATH',`/usr/bin/procmail')
define(`ALIAS_FILE',`/etc/mail/aliases')
MASQUERADE_AS(`infoave.net')
FEATURE(`masquerade_envelope')
FEATURE(`smrsh',`/usr/sbin/smrsh')
FEATURE(`mailertable',`hash -o /etc/mail/mailertable')
FEATURE(`virtusertable',`hash -o /etc/mail/virtusertable')
FEATURE(redirect)
FEATURE(always_add_domain)
FEATURE(use_cw_file)
FEATURE(`use_ct_file')
FEATURE(local_procmail)
MAILER(smtp)
MAILER(procmail)
FEATURE(`access_db')
FEATURE(`blacklist_recipients')
FEATURE(`accept_unresolvable_domains')
FEATURE(`accept_unqualified_senders')
dnl FEATURE(`relay_based_on_MX')


Change this to the path where you put it->/home/phil/Documents/sendmail.mc > /etc/sendmail.cf
Put your mailserver here->define(`SMART_HOST', `smtp.infoave.net')
Put your isp here->MASQUERADE_AS(`infoave.net')

theartofbone
07-14-2002, 06:54 PM
Thanks.. ill have to try sendmail, I didn't even give it a try. But anyway, on that smtp.infoave.com that you're using, that's your isp's right? So I would have to use Qwest's, since thats what Im using for dsl.. correct?

fancypiper
07-14-2002, 07:13 PM
Yes, unless you want to sign up to infoave :D

PLBlaze
07-14-2002, 08:40 PM
Postfix.Org (http://www.postfix.org) has really great resources :) , you should start reading ... as well as search on these forums , postfix is very popular here and there's lots of info in the ol threads :).

First of all i'd make sure your box is set to FQDN and such name is in main.cf ... from your example it's clear that you are using localhost.localdomain while this will work with postfix just fine on local box sites such hostmail will not be able to return/send mail because localhost is local only!.If you have read the postfix documentation you'd already know about it's postconf utility.Please post the output of postconf -n, then we'll be able to help more :) .