hello, i just installed qmail from the qmailrocks tutorial and am not able to receive e-mail from external addresses. I am able to send e-mail from my local subnet. This thread was having the same problem:
http://www.linuxquestions.org/questi...ht=qmail+relay
and they say this as a solution:
Thanks for your replys, I have finally found and solved the problem: I was following a qmail-vpopmail tutorial and did not create a virtual domain (this step seems to be missing in the tutorial).
Now sending and receiving mail works just fine.
However they do not say how to create the virtual domain. Any ideas?
below is the output of several files:
#view /etc/tcp.smtp
127.:allow,RELAYCLIENT=""
# view /var/qmail/control/rcpthosts
mail.mydomain.com
mydomain.com
# /var/qmail/bin/qmail-showctl
qmail home directory: /var/qmail.
user-ext delimiter: -.
paternalism (in decimal): 2.
silent concurrency limit: 255.
subdirectory split: 211.
user ids: 1000, 1001, 1002, 0, 1003, 1004, 1005, 1006.
group ids: 102, 103.
badmailfrom: (Default.) Any MAIL FROM is allowed.
bouncefrom: (Default.) Bounce user name is MAILER-DAEMON.
bouncehost: (Default.) Bounce host name is mail.mydomain.com.
concurrencylocal: (Default.) Local concurrency is 10.
concurrencyremote: Remote concurrency is 255.
databytes: (Default.) SMTP DATA limit is 0 bytes.
defaultdomain: Default domain name is mydomain.com.
defaulthost: (Default.) Default host name is mail.mydomain.com.
doublebouncehost: (Default.) 2B recipient host: mail.mydomain.com.
doublebounceto: (Default.) 2B recipient user: postmaster.
envnoathost: (Default.) Presumed domain name is mail.mydomain.com.
helohost: (Default.) SMTP client HELO host name is mail.mydomain.com.
idhost: (Default.) Message-ID host name is mail.mydomain.com.
localiphost: (Default.) Local IP address becomes mail.mydomain.com.
locals:
Messages for mail.mydomain.com are delivered locally.
Messages for mydomain.com are delivered locally.
me: My name is mail.mydomain.com.
percenthack: (Default.) The percent hack is not allowed.
plusdomain: Plus domain name is mydomain.com.
qmqpservers: (Default.) No QMQP servers.
queuelifetime: (Default.) Message lifetime in the queue is 604800 seconds.
rcpthosts:
SMTP clients may send messages to recipients at mail.mydomain.com.
SMTP clients may send messages to recipients at mydomain.com.
morercpthosts: (Default.) No effect.
morercpthosts.cdb: (Default.) No effect.
smtpgreeting: (Default.) SMTP greeting: 220 mail.mydomain.com.
smtproutes: (Default.) No artificial SMTP routes.
spfbehavior: (Default.) The SPF behavior is 0.
spfexp: (Default.) The SPF default explanation is: 550 See
http://spf.pobox.com/why.html?sender=%{S}&ip=%{I}&receiver=%{xR}.
spfguess: (Default.) The guess SPF rules are: .
spfrules: (Default.) The local SPF rules are: .
timeoutconnect: (Default.) SMTP client connection timeout is 60 seconds.
timeoutremote: (Default.) SMTP client data timeout is 1200 seconds.
timeoutsmtpd: (Default.) SMTP server data timeout is 1200 seconds.
virtualdomains:
Virtual domain: mydomain.com:mydomain.com
clientcert.pem: I have no idea what this file does.
concurrencyincoming: I have no idea what this file does.
rcpthosts.lock: I have no idea what this file does.
defaultdelivery: I have no idea what this file does.
locals.lock: I have no idea what this file does.
servercert.pem: I have no idea what this file does.
virtualdomains.lock: I have no idea what this file does.
Below is what i receive when attempting to send from an external domain:
The e-mail system was unable to deliver the message, but did not report a specific reason. Check the address and try again. If it still fails, contact your system administrator.
<x.x.com #5.0.0 smtp;553 sorry, relaying denied from your location [x.x.x.x] (#5.7.1)>
Any suggestions? Thanks in advance