Linux - NetworkingThis 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.
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.
Hello,
I'm just making it through RFCs about SMTP protcol, and I'd have a quick question. It seems like most of the SMTP servers nowadays have AUTH verb implemented, which is quite understandable.
So, if I want to send an email, I'm going to contact my SMTP server, to which I have to authenticate using AUTH. The SMTP server then sends my message to another SMTP server, from where the message can be read by target user (using some other protocol - not important now).
I tried to simulate incoming message on my SMTP server - and I failed, getting 550 status code - Relay not permitted.
So my question is, what's the difference between me and some other unknown SMTP server trying to contact mine to transfer a mail?
Thanks,
Skyer
Click here to see the post LQ members have rated as the most helpful post in this thread.
Yes, just about all SMTP relays are set up to use authentication. Open relays are primarily used by spammers, and are quickly blacklisted by RBL maintainers.
It would seem that your server doesn't permit relaying at all. The difference between you and a random server on the Internet trying to use your server as a relay, is that you should be able to authenticate with a valid username and password, and/or your connection should come from a trusted IP range.
You need to set up authentication and relaying in your server. I can't be more specific since you haven't told us which mail server you're using.
Thank you for your answer. It seems like I haven't described my question enough.
The server I am using is not 'mine' - I don't own it, it's just email service provided when you buy a domain. (So by mine, I rather meant the server on my side. I have an email account there, but not system's user account).
The authentication problem is clear, what I don't understand is, how is it possible for some other, totally foreign SMTP server to contact mine and transfer message, when I can't do it myself.
IP is not a way to go, as far as I know there's no global database of SMTP servers. (Or is there?)
There is a global database. For every (mail-enabled) domain, there is an MX record pointing to one or more FQDNs of mail servers that will accept mail for those domains. How else would any mail get to the right recipient? Mail couldn't very well just bounce around the 'net at random until it happend to reach the right server.
I don't know exactly what you tried to do, but if you tried to send a mail using SMTP to the registered mail server for your domain, with your own e-mail address as the recipient, it should have worked.
However, most mail servers filter mail against RBLs, and if your test originated from a blacklisted IP address (such as a dynamic IP handed out by an ISP), that could account for your mail being rejected.
Last edited by Ser Olmy; 01-22-2012 at 02:35 PM.
Reason: typo
It looks quite simple when you've got it explained, my bad that I haven't looked at DNS deeply so far.
(Of course email couldn't arrive without DNS, but I thought that the record is simply for all types of query, and does not differ for mail servers http servers, etc.)
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.