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.
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.
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[2722]: connect from mydomain.com[aa.bb.cc.02]
postfix/smtpd[2722]: NOQUEUE: reject: RCPT from mydomain.com[aa.bb.cc.02]: 554 <test@domain.com>: Relay access denied; from=<from@mydomain.com> to=<test@domain.com> proto=ESMTP helo=<mydomain.com>
postfix/smtpd[2722]: 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!
abapdr
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.
relayhost=
smtp.myispsserver.com
Don't forget to check your log file.
/var/log/maillog
Last edited by DavidPhillips; 05-28-2004 at 01:56 PM.
Jonasx, David,
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...
abapdr
Trying 65.54.252.230...
Connected to mx2.hotmail.com.
Escape character is '^]'.
220 mc6-f34.hotmail.com Microsoft ESMTP MAIL Service, Version: 5.0.2195.6713 ready at Fri, 28 May 2004 23:27:56 -0700
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 doodlebuggerr@hotmail.com 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 abapdr@example.com to abapdr@myisp.com, no problem.
Now I tried with yahoo where most of my buddies are, but I got stuck.
Trying 64.157.4.78...
telnet: connect to address 64.157.4.78: Connection refused
Trying 64.156.215.5...
Connected to mx1.mail.yahoo.com (64.156.215.5).
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
Trying 205.188.159.57...
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[2722]: connect from example.com[aa.bb.cc.02]
postfix/smtpd[2722]: NOQUEUE: reject: RCPT from example.com[aa.bb.cc.02]: 554 <buddy@domain.com>: Relay access denied; from=<abapdr@example.com> to=<buddy@domain.com> proto=ESMTP helo=<example.com>
postfix/smtpd[2722]: 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:
#relayhost =
Thanks so much for your time and contribution! Now I can attend to my other problems!
abapdr
AOL is one of the main ones that are blocking dynamic addresses. If you never use them you might be ok for most mail. You should get an email if any letter is denied.
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?
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.