Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
|
12-05-2003, 10:50 AM
|
#1
|
Member
Registered: Nov 2003
Location: London, UK
Distribution: Gentoo, RH (and, yes: M$2k)
Posts: 77
Rep:
|
[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 05:54 PM.
|
|
|
12-05-2003, 01:06 PM
|
#2
|
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:
|
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.
|
|
|
12-05-2003, 01:19 PM
|
#3
|
Member
Registered: Nov 2003
Location: London, UK
Distribution: Gentoo, RH (and, yes: M$2k)
Posts: 77
Original Poster
Rep:
|
Thanks Chort, will have to keep trying until propagation is complete. What can you advise with regards to my other query with aliases?
|
|
|
12-06-2003, 10:38 AM
|
#4
|
Member
Registered: Nov 2003
Location: London, UK
Distribution: Gentoo, RH (and, yes: M$2k)
Posts: 77
Original Poster
Rep:
|
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
|
|
|
12-06-2003, 06:35 PM
|
#5
|
Senior Member
Registered: Feb 2002
Location: Szczecin, Poland
Distribution: Gentoo, Debian
Posts: 2,458
Rep:
|
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 06:40 PM.
|
|
|
12-06-2003, 06:59 PM
|
#6
|
Member
Registered: Nov 2003
Location: London, UK
Distribution: Gentoo, RH (and, yes: M$2k)
Posts: 77
Original Poster
Rep:
|
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!
|
|
|
12-06-2003, 07:12 PM
|
#7
|
Senior Member
Registered: Feb 2002
Location: Szczecin, Poland
Distribution: Gentoo, Debian
Posts: 2,458
Rep:
|
Leave that answer for the other thread...
http://www.linuxquestions.org/questi...hreadid=123350
What do netstat and ps show after xinetd started?
|
|
|
12-06-2003, 07:17 PM
|
#8
|
Member
Registered: Nov 2003
Location: London, UK
Distribution: Gentoo, RH (and, yes: M$2k)
Posts: 77
Original Poster
Rep:
|
xinetd is listening on 993
|
|
|
12-06-2003, 07:27 PM
|
#9
|
Senior Member
Registered: Feb 2002
Location: Szczecin, Poland
Distribution: Gentoo, Debian
Posts: 2,458
Rep:
|
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.
|
|
|
12-06-2003, 08:01 PM
|
#10
|
Member
Registered: Nov 2003
Location: London, UK
Distribution: Gentoo, RH (and, yes: M$2k)
Posts: 77
Original Poster
Rep:
|
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
|
|
|
12-06-2003, 08:10 PM
|
#11
|
Member
Registered: Nov 2003
Location: London, UK
Distribution: Gentoo, RH (and, yes: M$2k)
Posts: 77
Original Poster
Rep:
|
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 unix asswd.byname
|
|
|
12-06-2003, 08:23 PM
|
#12
|
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:
|
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.
|
|
|
12-06-2003, 08:30 PM
|
#13
|
Member
Registered: Nov 2003
Location: London, UK
Distribution: Gentoo, RH (and, yes: M$2k)
Posts: 77
Original Poster
Rep:
|
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?
|
|
|
12-06-2003, 09:59 PM
|
#14
|
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:
|
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.
|
|
|
12-06-2003, 10:21 PM
|
#15
|
Member
Registered: Nov 2003
Location: London, UK
Distribution: Gentoo, RH (and, yes: M$2k)
Posts: 77
Original Poster
Rep:
|
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.
|
|
|
All times are GMT -5. The time now is 01:48 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|