-   Linux - Server (
-   -   Postfix + Dovecot on debian 5.0, Can send but not recieve. (

kresser 12-20-2009 08:52 PM

Postfix + Dovecot on debian 5.0, Can send but not recieve.
Ok, Ive been digging through google for several day's now and i finally threw in the towel and got an account here.

I set up debian 5 on a vm on one of my server's at home. Followed the tutorial here >> . Right after i did the initial install just as the tutorial says, i was able to recieve mail and collect it via imap on outlook or thunderbird. Finished the tutorial, everything was great. Well i live out in the country deep in the woods on a satellite connection, and that should be enough said so i picked up a cheap vps.

Did the tutorial just the same, except after the initial install i still couln't receive mail. dns mx records were set up the same, only thing different was i was using 32bit deb. 5 at home and 64bit deb. 5 on the vps. Did it over and over finally decided to finish setting up sasl and squirellmail and now i can send email (of course) now that sasl is finished. still cant receive. I used to test the mx record's and the only error that came back was that the server gave it relay access denied. Here is the exact error from returned mail from another address i have. <>:
host[] said:
554 5.7.1 <>: Relay access denied (in reply to RCPT
TO command).

So i tried to telnet 25, that let me in, i typed ehlo, put the sender address and finally when i got to rcpt to it would'nt take the address remember i can send email from this address it just won't recieve. so i checked netstat -l it shows that smtp is listening on all addresses. i can send via outlook or squirelmail doesn't matter which, but it works. Any insight would be greatly apprecated.

Thanks in advance. -Rick

kresser 12-20-2009 09:34 PM


I ssh'd into the server and telnet'd localhost that way, went through the ehlo and all the other commands. after finishing it said message qued and says ok.

Checked the email, still nothing, its just that if i do it from ssh on the vps it goes past rcpt to. and if i send it from anywhere else i get the returned mail error posted above.

Now i just checked the email that i said that i sent it from when i telnet'd localhost via ssh. And i found this error waiting in that account's mailbox (this account isn't affiliated with the server i'm posting about im just assuming that since i put this address in the <mail from> command after ehlo it just looped back somehow) This is what it said:

" The mail system

<>: mail for loops back to myself"

Thanks in advance, Rick

forubu 12-21-2009 01:29 AM

What's in the mydestination parameter in Postfix' Have you added as a valid destination domain there?
From the error message it sounds like Postfix is trying to send mail to, instead of accepting mail destined for this domain.

kresser 12-21-2009 02:40 PM

Wow that's great, i looked in my destinations and found,, <the hostname> , and, i added, that did the trick. THANKS SO MUCH!

forubu 12-21-2009 03:52 PM

You're welcome.
Always nice to know if the tips helps.

kresser 12-21-2009 05:09 PM

If you can guide me how to give you a thanks for your record, you totally deserve it!

forubu 12-21-2009 05:18 PM

It's the thumbs up icon that does it.

All times are GMT -5. The time now is 04:23 AM.