Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
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.
Introduction to Linux - A Hands on Guide
This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter.
For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.
Click Here to receive this Complete Guide absolutely free.
Background: Mandrake 10.0 Community
I have setup DNS, a webserver and postfix on my Linux box, no local network just yet. I have 2 static IPs: aa.bb.cc.01 and aa.bb.cc.02.
Using this very Linux box where the servers are I CAN receive e-mail from the internet and I CAN send e-mail to any other alias inside my domain. However, I CAN NOT send e-mail to the internet. Here are the relevant details:
The error message from my log file:
postfix/smtpd: connect from mydomain.com[aa.bb.cc.02]
postfix/smtpd: NOQUEUE: reject: RCPT from mydomain.com[aa.bb.cc.02]: 554 <email@example.com>: Relay access denied; from=<firstname.lastname@example.org> to=<email@example.com> proto=ESMTP helo=<mydomain.com>
postfix/smtpd: disconnect from mydomain.com[aa.bb.cc.02]
What am I doing wrong here? Under relayhost I tried mail.mydomain.com as well, no luck.
Any help would be much appreciated!
You will probably need to set a relay host. A lot of ISP's are blocking outgoing traffic on port 25 now and mail can only be sent through their mailserver. A lot of mailservers on the internet are not relaying email from most ISP's blocks of ip addresses as well, so you would be blocked from a lot of people's mailserver without it.
Don't forget to check your log file.
Last edited by DavidPhillips; 05-28-2004 at 01:56 PM.
Thanks for your input.
- In the /etc/postfix/main.cf file I set myhostname=example.com, because that's the hostname I get back when I type the <hostname> command.
- The actual domain name is the same as the myhostname variable (example.com), so $mydomain=example.com
- Since I explicitly specify the mynetworks entries I believe the mynetworks_style variable is ignored anyway
- My ISP does not block port 25
- I set relayhost=mail.speakeasy.net (I got this from them), still no luck.
This is getting frustrating...
I assume when I do ehlo I provide my mail server, right? mail.example.com is my MX 10 entry in my DNS server config.
I was trying to follow your instructions, everything is OK. (I hope firstname.lastname@example.org is not going to be too angry...)
I tried the same with my ISP (where I have an account) and I could successfully send an email from email@example.com to firstname.lastname@example.org, no problem.
Now I tried with yahoo where most of my buddies are, but I got stuck.
telnet: connect to address 126.96.36.199: Connection refused
Connected to mx1.mail.yahoo.com (188.8.131.52).
Escape character is '^]'.
220 YSmtp mta108.mail.scd.yahoo.com ESMTP service ready
That's correct. If you login to yahoo's mail server it disconnects as soon as it sends the 250.
If you hit enter you will be out of the login. You can send mail to a yahoo user through the relay host for your isp. You should probably test it. Everything is the same as if you were on yahoo's server except you connect to your relay server. AOL will probably not work either.
[david@slacker david]$ telnet mailin-01.mx.aol.com 25
Connected to mailin-01.mx.aol.com.
Escape character is '^]'.
554- (RTR:BB) The IP address you are using to connect to AOL is a dynamic
554- (residential) IP address. AOL will not accept future e-mail transactions
554- from this IP address until your ISP removes this IP address from its list
554- of dynamic (residential) IP addresses. For additional information,
554- please visit http://postmaster.info.aol.com.
I think if you can relay mail to yahoo or aol through your isp mailserver you should be ok.
You should probably test that using telnet to see if it works.
Last edited by DavidPhillips; 05-29-2004 at 10:50 AM.
Thank you so much for following up on this issue. You would not believe what the problem was!
I started to get suspicious of the fact that using my mail client wherever I tried to send an e-mail (except for within my own domain) I got the very same "Relay access denied" message. Checked the log, and as I showed it in my original e-mail I saw the following:
postfix/smtpd: connect from example.com[aa.bb.cc.02]
postfix/smtpd: NOQUEUE: reject: RCPT from example.com[aa.bb.cc.02]: 554 <email@example.com>: Relay access denied; from=<firstname.lastname@example.org> to=<email@example.com> proto=ESMTP helo=<example.com>
postfix/smtpd: disconnect from example.com[aa.bb.cc.02]
At the same time the mynetworks setting is
mynetworks = 192.168.1.0/24, 127.0.0.0/8, 10.0.0.0/8
I'm trying to send an e-mail from the server where my mailserver is running but the log does not show the localhost as the sender, it shows the IP address of my mailserver (aa.bb.cc.02). My own mailserver denied relay access from me!!!??? Sounds strange? I thought so!
I changed the mynetworks setting to
mynetworks = 192.168.1.0/24, 127.0.0.0/8, 10.0.0.0/8, aa.bb.cc.02
and now it works, I can send e-mail to anybody even to my yahoo buddies. I do not even have to relay through my isp's mail server, I have the relay_host commented out in my config file:
Thanks so much for your time and contribution! Now I can attend to my other problems!
i would like to re-open this post lol..i have followed everything on here and still no luck with postfix sending to anywhere except my own domain. i have used telnet and i connect and everything works but i still have no luck sending...my domain is 3gxlive.com
postconf -n is always a good way to start a "I need help with my Postfix Mail Server" type post Might have been a good idea to start a new thread for your problem as well so as not to confuse people..
postconf -n will print out all the items that are NOT default in your postfix configuration. makes it easy to see all the changes you have made. (this is also the first thing that is asked for on the Postfix mail list)
Also did you test using a relayhost as mentioned above ? a LOT of ISP's block mail servers on dynamic or residential service.
sorry..i just thought i would get critisized if i started a new one..other forums usually have problems with starting a new topic when there is one already made... postconf -n gave this results (NOTE: i am using vhcs which may change settings http://vhcs.net)
Postfix sending mails to mailbox but mails are not received
I am facing an issue with postfix. I have configured Postfix SMTP, saslauthd and dovecot. I also have a smtp replay which is lets say a.b.c.d over port 25. Now when I use telnet to send email using postfix can see no errors in log file (dsn=2.0.0, status=sent (delivered to mailbox)). However, I dont get the mail in the inbox. I have also added the relay server as well but still no mails. When do telnet on the relay box I am able to get the mail in my Inbox. Please can you help me with this issue?