LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
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 12-05-2003, 09:50 AM   #1
jules_fraser
Member
 
Registered: Nov 2003
Location: London, UK
Distribution: Gentoo, RH (and, yes: M$2k)
Posts: 77

Rep: Reputation: 15
[CLOSED] no mail delivered to postfix box


Have just had it confirmed from my ISP that they have amended my MX records. But what I need to know is for every "someone" @domain.co.uk do I have to have a local usr setup on the server for this "someone?" Or can I use these aliases that I have seen dotted about?

I have a usr called greg, how can I get mail sent to duda@domain.co.uk sent straight to the "greg" mailbox?

I have sent several mails to greg@domain.co.uk but they simply get rejected with a an error stating: "sorry could find no host, greg@domain.co.uk." Is this still a prob with the ISP or with me? THX

Last edited by jules_fraser; 04-08-2004 at 04:54 PM.
 
Old 12-05-2003, 12:06 PM   #2
chort
Senior Member
 
Registered: Jul 2003
Location: Silicon Valley, USA
Distribution: OpenBSD 4.6, OS X 10.6.2, CentOS 4 & 5
Posts: 3,660

Rep: Reputation: 75
Look at your DNS, it still hasn't propagated.

dig @ns1.easypost.com cybertrex.co.uk mx

Usually it takes a few days for DNS to fully propagate across the Internet.
 
Old 12-05-2003, 12:19 PM   #3
jules_fraser
Member
 
Registered: Nov 2003
Location: London, UK
Distribution: Gentoo, RH (and, yes: M$2k)
Posts: 77

Original Poster
Rep: Reputation: 15
Thanks Chort, will have to keep trying until propagation is complete. What can you advise with regards to my other query with aliases?
 
Old 12-06-2003, 09:38 AM   #4
jules_fraser
Member
 
Registered: Nov 2003
Location: London, UK
Distribution: Gentoo, RH (and, yes: M$2k)
Posts: 77

Original Poster
Rep: Reputation: 15
Chort, it looks like mail is now being propagated to my mail server, how do I get assess to it? Stupid question I know, but do I log in as POSTFIX via a IMAP client and retrieve it that way. If I send mail to USR@domain.co.uk, do I have to ensure that I a USR account setup to log in?

Pls advise. Jules
 
Old 12-06-2003, 05:35 PM   #5
peter_robb
Senior Member
 
Registered: Feb 2002
Location: Szczecin, Poland
Distribution: Gentoo, Debian
Posts: 2,458

Rep: Reputation: 48
You need to have a pop or imap mail server running as well as Postfix.
Postfix collects/sends, pop/imap allow people to collect.
There is normally a pop server installed ready to run with the xinetd programme.

Open a Terminal window and as root user do netstat -anp & ps ax to see if one is running.
It will be listening on port 110 (pop3) or 995 (pop3s)but will probably be called xinetd.

If not, try /etc/init.d/xinetd start to get it started and check it as above.
Anyone with a user account in the server (except root) can then connect with their username & password to collect their mail, using a mail client from their own machine.

The advertised mail name eg user@xyz.com doesn't have to be the name of a user.
There is an alias system to avoid using real user's names.

I had a look at the previous posts, but couldn't be sure which Linux distribution you are using for the server. There are several security concerns with turning xinetd on without closing the unnecessary services and there are different ways of turning these off for each distribution... and also sending usernames & passwords in clear text across the internet by using pop3 rather than pop3s...

Last edited by peter_robb; 12-06-2003 at 05:40 PM.
 
Old 12-06-2003, 05:59 PM   #6
jules_fraser
Member
 
Registered: Nov 2003
Location: London, UK
Distribution: Gentoo, RH (and, yes: M$2k)
Posts: 77

Original Poster
Rep: Reputation: 15
Xinetd does start without any probs, but when I start Postfix I get this error:

postfix: error while loading shared libraries: libssl.so.4: cannot open shared o
bject file: No such file or directory

Any clues? I have closed off port 25 on my router as threre is no point in mail being delivered to a box that cannot process it!
 
Old 12-06-2003, 06:12 PM   #7
peter_robb
Senior Member
 
Registered: Feb 2002
Location: Szczecin, Poland
Distribution: Gentoo, Debian
Posts: 2,458

Rep: Reputation: 48
Leave that answer for the other thread...
http://www.linuxquestions.org/questi...hreadid=123350

What do netstat and ps show after xinetd started?
 
Old 12-06-2003, 06:17 PM   #8
jules_fraser
Member
 
Registered: Nov 2003
Location: London, UK
Distribution: Gentoo, RH (and, yes: M$2k)
Posts: 77

Original Poster
Rep: Reputation: 15
xinetd is listening on 993
 
Old 12-06-2003, 06:27 PM   #9
peter_robb
Senior Member
 
Registered: Feb 2002
Location: Szczecin, Poland
Distribution: Gentoo, Debian
Posts: 2,458

Rep: Reputation: 48
ok, that's an imap server.

Set up an email client with an imap account and use one of the usernames & passwords to collect the mail.
 
Old 12-06-2003, 07:01 PM   #10
jules_fraser
Member
 
Registered: Nov 2003
Location: London, UK
Distribution: Gentoo, RH (and, yes: M$2k)
Posts: 77

Original Poster
Rep: Reputation: 15
Have done this and have sent mail back and forth and nothing has been delivered. /var/log/maillog below, usr: bart:

Dec 6 23:50:03 frodo imapd[5782]: Authenticated user=bart host=tektrox.cybertrex.co.uk [10.22.18.107]
Dec 6 23:50:14 frodo imapd[5783]: imap service init from 10.22.18.107
Dec 6 23:50:14 frodo imapd[5783]: Authenticated user=bart host=tektrox.cybertrex.co.uk [10.22.18.107]
Dec 6 23:57:42 frodo postfix/postfix-script: fatal: usage: postfix start (or stop, reload, abort, flush, or check)
Dec 6 23:57:48 frodo postfix/postfix-script: refreshing the Postfix mail system
Dec 6 23:57:48 frodo postfix/master[5612]: reload configuration
Dec 6 23:57:48 frodo postfix/master[5612]: warning: service smtp: ignoring inet_interfaces change
Dec 6 23:57:48 frodo postfix/master[5612]: warning: to change inet_interfaces, stop and start Postfix
Dec 6 23:58:27 frodo postfix/postfix-script: refreshing the Postfix mail system
Dec 6 23:58:27 frodo postfix/master[5612]: reload configuration
Dec 6 23:58:27 frodo postfix/master[5612]: warning: service smtp: ignoring inet_interfaces change
Dec 6 23:58:27 frodo postfix/master[5612]: warning: to change inet_interfaces, stop and start Postfix
Dec 6 23:58:52 frodo postfix/postfix-script: refreshing the Postfix mail system
Dec 6 23:58:52 frodo postfix/master[5612]: reload configuration
 
Old 12-06-2003, 07:10 PM   #11
jules_fraser
Member
 
Registered: Nov 2003
Location: London, UK
Distribution: Gentoo, RH (and, yes: M$2k)
Posts: 77

Original Poster
Rep: Reputation: 15
Have posted my main.cf file to see if you can spot anything I've missed but I think I've managed it ok, could it be to do with my hostname?

# INTERNET HOST AND DOMAIN NAMES
#myhostname = host.domain.tld
myhostname = frodo.cybertrex.co.uk
mydomain = cybertrex.co.uk
disable_dns_lookups = no

# SENDING MAIL
#myorigin = $myhostname
myorigin = $mydomain


# RECEIVING MAIL
inet_interfaces = localhost
#inet_interfaces = all
#inet_interfaces = $myhostname
#inet_interfaces = $myhostname, localhost
mydestination = $myhostname, localhost.$mydomain
#mydestination = $myhostname, localhost.$mydomain $mydomain
#mydestination = $myhostname, localhost.$mydomain, $mydomain,
# mail.$mydomain, www.$mydomain, ftp.$mydomain


# TRUST AND RELAY CONTROL
#mynetworks_style = class
mynetworks_style = subnet
#mynetworks_style = host
#mynetworks = 168.100.189.0/28, 127.0.0.0/8
#mynetworks = $config_directory/mynetworks
#mynetworks = hash:/etc/postfix/network_table
#relay_domains = $mydestination


# INTERNET OR INTRANET
relayhost = $mydomain
#relayhost = gateway.my.domain
#relayhost = uucphost
#relayhost = [an.ip.add.ress]


# REJECTING UNKNOWN LOCAL USERS
#local_recipient_maps = $alias_maps unixasswd.byname
 
Old 12-06-2003, 07:23 PM   #12
chort
Senior Member
 
Registered: Jul 2003
Location: Silicon Valley, USA
Distribution: OpenBSD 4.6, OS X 10.6.2, CentOS 4 & 5
Posts: 3,660

Rep: Reputation: 75
Do exactly what it says. Read the error message. It's telling you that if you have changed inet_interfaces since you last STARTed Postfix, you first need to STOP Postfix and then START it again. You cannot simply RELOAD the config.

By the way, if Postfix is only bound to localhost you will be able to send mail only from users logged into that box. It will not accept mail from other hosts on your network, and it will not accept mail from any hosts on the Internet.
 
Old 12-06-2003, 07:30 PM   #13
jules_fraser
Member
 
Registered: Nov 2003
Location: London, UK
Distribution: Gentoo, RH (and, yes: M$2k)
Posts: 77

Original Poster
Rep: Reputation: 15
Hi chort. The msg previous regarding inet_interfaces I had already changed but I have also made the change to localhost. My only query is, mail use to go to mail.cybertrex.co.uk as this is straight from my isp. Where do I add this in main.cf?
 
Old 12-06-2003, 08:59 PM   #14
chort
Senior Member
 
Registered: Jul 2003
Location: Silicon Valley, USA
Distribution: OpenBSD 4.6, OS X 10.6.2, CentOS 4 & 5
Posts: 3,660

Rep: Reputation: 75
relayhost = <mail server that will accept mail from your domain bound for the outside world>

By the way, you made a mistake when you asked your DNS provider to change your MX record. I seem to recall that mail.cybertrex.co.uk used to be a CNAME to your mail server at your ISP. Well now mail.cybertrex is an A record that points to the static IP of your Linux box.

You know, I have no problem helping a newbie with a problem, in fact I've answered the same networking questions (the EXACT same questions, mind you) dozens of times for people when they could have just searched the forums. There is only one thing I ask of people when they ask for my help: PAY ATTENTION and follow my instructions completely.

You did not do this, unfortunately. You seem to selectively pull out bits and pieces of the instructions I give and only follow the parts that you feel like. When you don't pay attention to the greater scope of what I'm saying, all you take away is steps to perform, not the actual goal of what you're trying to do. This is why you have another problem now. If you would have paid attention to what I said in earlier posts, you would have seen that I pointed out that mail.cybertrex was CNAMEd and that you should have picked a new host. You can see the post where I said that right here Also, it seems that since that time the A record for cybertrex.co.uk has moved from pointing at your static IP to pointing to a host in easyspace.com.

So to sum up, I will be happy to help you (e-mail after all, is my area of expertise) but if you do not follow my instructions, don't expect me to bail you out time and again when you screw things up by ignoring the way I tell you to solve your problems.
 
Old 12-06-2003, 09:21 PM   #15
jules_fraser
Member
 
Registered: Nov 2003
Location: London, UK
Distribution: Gentoo, RH (and, yes: M$2k)
Posts: 77

Original Poster
Rep: Reputation: 15
I do remember a previous post in which you explained as to relayhost. It's just gone 03.00 and I have been at this mail server crap for days on end now, so yes of course there are times when laziness will grab hold and the eyelids start to close.

I didn't need you to lambast me here in public, in front of all and sundry. LinuxQuestions.org has a private messenging service. You felt you couldn't utilize this facility, in order to spare me this embarrassment, NO? Or you just felt that a lesson had to be heard and this is how you were going to exercise it? It's funny the people who never reveal their full name on forums such as these are always the ones so cutting with the directness of life.

The wankers like me, who go this extra mile trying to get hold of information are the ones who get slapped down. There is a forum set-up for people to air their grievances. Many a post has been dedicated to Linux and how when things go wrong, life can be soooooo bloody difficult and annoying. People like you put forward all kinds of answers to all kinds of questions and you never EVER mention what the specific word means.

The person asking the question, is always fearful of that slapped down cutting remark when the patience of the orginator finally wears thin. I guess that snapped twig between you and I has come.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 forcing mail to be delivered to root azrael808 Linux - Software 5 07-20-2005 03:42 PM
Mail not being delivered liquidcool Linux - Software 4 10-17-2004 03:44 PM
qmail log says mail delivered, mail nowhere to be found svartrev Linux - Software 0 03-24-2004 05:12 PM
mail is not delivered thru the mail command aadilkhan Linux - General 1 11-18-2003 05:37 PM
Sendmail, Connection time out with... but mail was delivered elnone Linux - Software 0 10-23-2003 04:11 AM

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

All times are GMT -5. The time now is 07:22 PM.

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