Linux - ServerThis forum is for the discussion of Linux Software used in a server related context.
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.
I have a debian box with postfix successsfully installed. I also have a domain name and apache successfully running a webserver from my local box. I have tried for quite a few hours to get the email server up but to no luck.
I have opened up some ports on my router with no luck. I think its either a setting with the domain or a setting with postfix... or both. When I send an email to an address at my domain i get
550 [PERMFAIL] destination not valid within DNS
Im kind of a noob, but I have been playing with linux for 5 years now so I can do most basic things including searching... which yielded lots of answeres, but not the right ones. I included my /etc/postfix/main.cf
# See /usr/share/postfix/main.cf.dist for a commented, more complete version
# Debian specific: Specifying a file name will cause the first
# line of that file to be used as the name. The Debian default
# is /etc/mailname.
#myorigin = /etc/mailname
smtpd_banner = $myhostname ESMTP $mail_name (Debian/GNU)
biff = no
# appending .domain is the MUA's job.
append_dot_mydomain = no
# Uncomment the next line to generate "delayed mail" warnings
#delay_warning_time = 4h
i got the 550 error when sending from my comcast account to my domain. I did open up port 25 for smtp, it is still open. i can open all the ports temporarily if needed. Im not sure if I dont have the relay/smtp stuff right or if I need to adjust the settting with the domain. I have an MX0 for the smtp and an MX10 for mailsave1 or somthing along those lines.
how do I check the email from the other direction, eg. from my box to the world?
the computer currently has all ports open, but still same luck. I have the page for my domain service open, but I dont know what things would need to be changed, or what these error codes mean.
What are the IPs of garretthead.net, gunit.garretthead.net and mail.garretthead.net - if mail.garrethead.net is this machine, comment the relayhost line out
ok, let me try and get my situation clearer. I have the domain, garretthead.net..through godaddy. I have this box on a homenetwork, its sub ip is 192.168.0.104, all ports opened up for testing right now (will tighten security later). My goddaddy directs http to my comcast ip, which my router allows to my box here, where I have apache server running my site fine. Now it sends mail to a smtp.secureserver.net, or pop.secureserver.net, or mail.secure.. thats what my godaddy says at least. godaddy said my mailhub was mail.garretthead.net, so thats where that came from. gunit is the box I am running on. I went through the basic config as best I could. My understanding is that godaddy will hold the mail when needed (thats why I have MX0 and MX10 right?), and my server will connect every minute or so to send/collect mail from the godaddy mail server which I thought was mail.garretthead.net. My main goal is to have this box run my web and email and allow me to make anyaccountname@garretthead.net without paying them $$$/monthly.
Im confused because I thought even if my server didnt connect that godaddy would hold any messages since i have my MX entries setup. this email stuff is all prety new to me.
OK, on the mail front, MX records are pretty much like A records for http, and allow for prioritised use, so mail should get sent to the IP at the end of MX0 before MX10. However, if you have the MX records pointing to your box (not much point having more than one point to the same IP), it simply tells servers to connect to the IP listed and deliver the mail - no concept of intermediating storage or anything of the kind. For example, I have one site I still have hosted externally (the first I set up), and have MX0 set to my own server's IP, and MX10 set to the hosting mail server. This way, if my server is down, it will be delivered to my hosting mailbox and I can collect it later with fetchmail.
In postfix, relayhost allows you to send mail through a relay - often another local server or your ISP's mailserver (this is quite useful if your IP is considered part od a dynamic block and blocked by spam filters etc). If you don't have this set, postfix will look up the MX record of the destination address and connect directly to send the mail. If set, it passes the mail to the relay which then connects to the destination.
Now, from what you have said, I can't tell what mail.garretthead.net is, but I would assume this is set for your MX records. You are more likely to want smtp.secureserver.net in that setting, but probably don't need either.
From a terminal, send a mail to yourself using the mail command, and post the relevant lines from maillog
ok I changed the mx0 to point to my ip and have the initial entries as mx10 and mx20. I can send from root@garretthead.net to garrett@garretthead.net, and vise versa now! Yay. I still have one major problem though, i am having trouble sending to and from comcast.
Apr 14 20:32:15 localhost postfix/qmgr[10924]: EAEA7103E9: from=<root@garretthead.net>, size=306, nrcpt=1 (queue active)
Apr 14 20:32:15 localhost postfix/local[11045]: EAEA7103E9: to=<garrett@garretthead.net>, relay=local, delay=0.04, delays=0.03/0/0/0.01, dsn=2.0.0, status=sent (delivered to command: procmail -a "$EXTENSION")
Apr 14 20:32:16 localhost postfix/qmgr[10924]: EAEA7103E9: removed
Apr 14 20:34:33 localhost postfix/qmgr[10924]: 1A625103D7: from=<garrett@garretthead.net>, size=313, nrcpt=1 (queue active)
Apr 14 20:34:34 localhost postfix/smtp[11087]: 1A625103D7: to=<crash_landing@comcast.net>, relay=gateway-s.comcast.net[63.240.76.26]:25, delay=76088, delays=76088/0.02/0.13/0.02, dsn=5.0.0, status=bounced (host gateway-s.comcast.net[63.240.76.26] said: 550 68.81.91.173 blocked by ldapu=rblmx,dc=comcast,dc=net -> Comcast.net subscribers are not permitted to directly connect to this mail server. If you are a Comcast Commercial Services customer and need support, please contact support_biz@cable.comcast.com (in reply to MAIL FROM command))
Apr 14 20:34:34 localhost postfix/cleanup[11089]: 31EA2103E8: message-id=<20070415003434.31EA2103E8@garretthead.net>
Apr 14 20:34:34 localhost postfix/bounce[11088]: 1A625103D7: sender non-delivery notification: 31EA2103E8
Apr 14 20:34:34 localhost postfix/qmgr[10924]: 31EA2103E8: from=<>, size=2637, nrcpt=1 (queue active)
Apr 14 20:34:34 localhost postfix/local[11090]: 31EA2103E8: to=<garrett@garretthead.net>, relay=local, delay=0.05, delays=0.02/0.01/0/0.02, dsn=2.0.0, status=sent (delivered to command: procmail -a "$EXTENSION")
Apr 14 20:34:34 localhost postfix/qmgr[10924]: 1A625103D7: removed
Apr 14 20:34:34 localhost postfix/qmgr[10924]: 31EA2103E8: removed
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.