LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 09-14-2003, 08:04 PM   #1
macdafoe
LQ Newbie
 
Registered: Sep 2003
Location: Fort Lauderdale
Distribution: RH 8.0
Posts: 23

Rep: Reputation: 15
Question POSTFIX woes....


already bear with me, since I just installed Red Hat 8.0 72 hrs ago....my purpose is to migrate all my web based function onto the Linux box...

thus far, I have successfully configure POSTFIX to send/receive mail using MUTT at the root.


Issue #1: Mail sent to web base mail account (ie. yahoo) received address as: [ROOT@HOST.MYDOMAIN.COM] instead of [USER@MYDOMAIN.COM]

and yes, I do realize that this can be attributed to having been logged in at the root during the send....I'm more interested in resolving my domain addressing issue.....


[/ETC/POSTFIX/MAIN.CF] is configured as: (unless otherwise indicated below, default settings are used)

MYHOSTNAME = host.example.com

MYDOMAIN = example.com

MYORIGIN = $mydomain

INET_INTERFACES = all

MYDESTINATION = $myhostname, localhost.$mydomain, $mydomain

=============================================

I should also clarify be saying that I'm configuring this as a standalone mailserver....


Issue #2: Despite being able to send/receive mail from root to a web based email account, I am unable to connect to the mail server within the LAN. I'm using (urgh!!!) Outlook Express 6 as my email client on the LAN.

The mail server is configured as: 192.168.1.200 and all my clients are located within this subnet....

Should you require any additional info to assist in resolving this issue, I will gladly provide them....

I need to have email functioning before business tomorrow morning, so your insights are great appreciated.

-David

Last edited by macdafoe; 09-15-2003 at 07:08 PM.
 
Old 09-15-2003, 12:55 AM   #2
macdafoe
LQ Newbie
 
Registered: Sep 2003
Location: Fort Lauderdale
Distribution: RH 8.0
Posts: 23

Original Poster
Rep: Reputation: 15
SMTP testing results

SMTP Connection:

OK, connected to netelsys.com...
< 220 jupiter.netelsys.com ESMTP Postfix
> HELO edit.dnsvr.com
< 250 jupiter.netelsys.com
> MAIL FROM:<macdafoe@yahoo.com>
< 250 Ok
> RCPT TO:<macdafoe@netelsys.com>
< 250 Ok
> DATA
< 354 End data with <CR><LF>.<CR><LF>
> From: macdafoe@yahoo.com
> To: macdafoe@netelsys.com
> Subject: ZoneEdit Automated SMTP Test (netelsys.com)
>
> If you received this, then the mail server (netelsys.com) is probably working.
> Sent at 2003-09-15 01:52:57 by 67.35.2.88 using Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.0.2) Gecko/20030716
> .
< 250 Ok: queued as AC45413F09
 
Old 09-15-2003, 01:10 AM   #3
joseph
Member
 
Registered: Jun 2003
Location: Batam
Distribution: Ubuntu 10 And Linux Mint
Posts: 414

Rep: Reputation: 30
Can you post up your man.cf configuration?
I need to see your main.cf before being able to help you.
 
Old 09-15-2003, 01:52 AM   #4
macdafoe
LQ Newbie
 
Registered: Sep 2003
Location: Fort Lauderdale
Distribution: RH 8.0
Posts: 23

Original Poster
Rep: Reputation: 15
/etc/postfix/main.cf

(only listing items which have been enabled
========================================================
queue_directory = /var/spool/postfix

command_directory = /usr/sbin

daemon_directory = /usr/libexec/postfix

mail_owner = postfix

myhostname = jupiter.netelsys.com

mydomain = netelsys.com

myorigin = $mydomain

inet_interfaces = all

mydestination = $myhostname, localhost.$mydomain, $mydomain

alias_maps = hash:/etc/postfix/aliases

debug_peer_level = 2

debugger_command =
PATH=/usr/bin:/usr/X11R6/bin
xxgdb $daemon_directory/$process_name $process_id & sleep 5

sendmail_path = /usr/sbin/sendmail.postfix

newaliases_path = /usr/bin/newaliases.postfix

mailq_path = /usr/bin/mailq.postfix

setgid_group = postdrop

manpage_directory = /usr/share/man

sample_directory = /usr/share/doc/postfix-1.1.12/samples

readme_directory = /usr/share/doc/postfix-1.1.12/README_FILES
alias_database = hash:/etc/postfix/aliases

==============================================================
 
Old 09-15-2003, 03:07 AM   #5
joseph
Member
 
Registered: Jun 2003
Location: Batam
Distribution: Ubuntu 10 And Linux Mint
Posts: 414

Rep: Reputation: 30
where is mynetworks line?
 
Old 09-15-2003, 03:15 AM   #6
macdafoe
LQ Newbie
 
Registered: Sep 2003
Location: Fort Lauderdale
Distribution: RH 8.0
Posts: 23

Original Poster
Rep: Reputation: 15
I haven't configured it.....it not currently enabled....

which could certainly be an issue....

the range of addresses on the LAN are 192.168.1.100-250....

so, correct me if I'm mistaken....that entry should read something like: 192.168.1.0/28 127.0.0.0/8???


and there's no doubt that I'm receiving mail, since I just read the /var/log/maillog, which is loaded with entries......

my question remains, why doesn't [mydomain.com] appear as the senders address?? after performing some additional changes I have gotten the address to read as [user@.mydomain.com].....close....

and Outlook Express claims that pop3 (port 110) is blocked......

so having reviewed the maillog, I didn't find a single POP3 entry....plenty of SMTP though.....so if appears the POP3 hasn't been configured properly.....

where to go from here??

Last edited by macdafoe; 09-15-2003 at 03:34 AM.
 
Old 09-15-2003, 04:33 AM   #7
joseph
Member
 
Registered: Jun 2003
Location: Batam
Distribution: Ubuntu 10 And Linux Mint
Posts: 414

Rep: Reputation: 30
Quote:
Originally posted by macdafoe
I haven't configured it.....it not currently enabled....

so having reviewed the maillog, I didn't find a single POP3 entry....plenty of SMTP though.....so if appears the POP3 hasn't been configured properly.....

where to go from here??
Have installed your IMAP package?
 
Old 09-15-2003, 04:34 AM   #8
macdafoe
LQ Newbie
 
Registered: Sep 2003
Location: Fort Lauderdale
Distribution: RH 8.0
Posts: 23

Original Poster
Rep: Reputation: 15
pop3 connection are refused

ok....back from the drawing boards....

according to the /etc/xinetd.d file POP3 is starting & running....however all connections to port 110 are refused....

I confirmed this by configuring netscape with one of the addresses from my domain.....and subsquently tried all the server name/alias.....

typically I had been using the IP address of the box, because I'm behind a firewall....

so let me eliminate the obviousl stuff right off the top....

I have both SMTP/POP3 ports open through the firewall and are aimed the the mailserver.....and fortunately my ISP doesn't block these ports, since I still can use my "old" windoze mail server perfectly....

apparently my problem lies in the configuration of POP3.....your insights are appreciated....before I toss the frickin' thing across the room.....ok...ok......<deep breath>


as I was saying....and netscape provides the following: [Could not connect to server. Connect refused.]

the firewall within Red Hat is also disabled.....or so I think.....throw me a bone here....

-David


Last edited by macdafoe; 09-15-2003 at 04:37 AM.
 
Old 09-15-2003, 04:39 AM   #9
macdafoe
LQ Newbie
 
Registered: Sep 2003
Location: Fort Lauderdale
Distribution: RH 8.0
Posts: 23

Original Poster
Rep: Reputation: 15
IMAP?

I'm under the impression that IMAP or POP3 is an EITHER/OR choice....

EITHER IMAP is used -OR- POP3....not both....
 
Old 09-15-2003, 04:49 AM   #10
joseph
Member
 
Registered: Jun 2003
Location: Batam
Distribution: Ubuntu 10 And Linux Mint
Posts: 414

Rep: Reputation: 30
then you must go to /etc/xinetd.d and edit the file ipop3 change the disable = yes to no.

Then try the POP connection
 
Old 09-15-2003, 05:28 AM   #11
macdafoe
LQ Newbie
 
Registered: Sep 2003
Location: Fort Lauderdale
Distribution: RH 8.0
Posts: 23

Original Poster
Rep: Reputation: 15
if you read the post 3 above this one....I already did this:
"according to the /etc/xinetd.d file POP3 is starting & running....however all connections to port 110 are refused...."

thanks for your effort....but these "one liners" aren't very insightful.....

Last edited by macdafoe; 09-15-2003 at 05:33 AM.
 
Old 09-15-2003, 06:16 AM   #12
macdafoe
LQ Newbie
 
Registered: Sep 2003
Location: Fort Lauderdale
Distribution: RH 8.0
Posts: 23

Original Poster
Rep: Reputation: 15
mail server responded: BAD AUTHENTICATION

ok....I implemented a version of the MAIN.CF, courtesy of EvilOne.....except applying my network particulars.

see copy of file below:

etc/postfix/main.cf

alias_maps = hash:/etc/postfix/aliases
command_directory = /usr/sbin
config_directory = /etc/postfix
daemon_directory = /usr/libexec/postfix
debug_peer_level = 2
default_destination_concurrency_limit = 10
default_privs = nobody
inet_interfaces = all
local_destination_concurrency_limit = 2
mail_owner = postfix
mail_spool_directory = /var/spool/mail
mailbox_command = /usr/bin/procmail -a $DOMAIN -d $LOGNAME
mydestination = localhost, lizzynnarn.com
mydomain = lizzynnarn.com
myhostname = merlin.lizzynnarn.com
mynetworks = 192.168.7.1, 192.168.7.2, 192.168.6.7.3, 193.61.122.57, 193.61.122. 51, 127.0.0.0/8
myorigin = $mydomain
queue_directory = /var/spool/postfix
smtpd_banner = $myhostname ESMTP $mail_name


All appears well.....EXCEPT now when I attempt get mail with Netscape for example. I receive [MAIL SERVER 192.168.1.200 RESPONDED = BAD AUTHENTICATION]

alright, at least I'm making progress.....obviously somewhere I need to configure authentication???

Let me start by stating how I created these users......their only purpose is for email, so when I created them, they were not given a HOME DIR, since there's no need....I also joined them all to the [MAIL-USERS-ONLY] group.....

so as I understand my situation to be is....I'm now at least knocking at the door, but I don't possess the proper key to unlock it.

Your continued support is desperately needed.
 
Old 09-15-2003, 06:57 AM   #13
macdafoe
LQ Newbie
 
Registered: Sep 2003
Location: Fort Lauderdale
Distribution: RH 8.0
Posts: 23

Original Poster
Rep: Reputation: 15
Lightbulb

oh, yes.....by the way....the issue of the recipient receiving my domains email address as [user@.mydomain.com] is still unresolved.....

been up all night trying to work this one out.....I thinking some ZZZZZZ, and when I wake up, I'm have some wonderful technical morsels awaiting me.....

work with me people!!! II'll be back.
 
Old 09-15-2003, 07:06 PM   #14
macdafoe
LQ Newbie
 
Registered: Sep 2003
Location: Fort Lauderdale
Distribution: RH 8.0
Posts: 23

Original Poster
Rep: Reputation: 15
using fetchmail I'm able to confirm that POP3 is up & running, having testing various email account within the domain....

however I seem to still incurr a failed authentication when using any type of email client...whether Netscape, which is installed on the same box as the mail server....or Outlook which is running off the windoze clients within the LAN....

any direction as this point would be helpful.
 
Old 09-16-2003, 01:45 AM   #15
macdafoe
LQ Newbie
 
Registered: Sep 2003
Location: Fort Lauderdale
Distribution: RH 8.0
Posts: 23

Original Poster
Rep: Reputation: 15
victory at last!! well all is up & running properly...managed to resolve both issues at the same time.....

thanks for the insight.
 
  


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 send mail problem(In RH9, kernal 2.4.20, postfix 2.1.5) minor Linux - General 6 09-23-2019 10:09 PM
Postfix mail transfer agent not sending mail locally or to other servers sketelsen Linux - Software 3 02-09-2006 11:16 AM
problem receiving pop3 mail from postfix mail server GEN_Electric Linux - Software 2 02-14-2005 02:43 PM
Postfix $HOME/mail/inbox instead of /var/spool/mail ramram29 Linux - Software 3 08-08-2004 01:28 AM
Postfix mail server not accepting incoming mail from the external interface rexmundi Linux - Networking 7 12-22-2003 03:41 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 03:59 AM.

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