Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Can't send mail from local to local

Status
Not open for further replies.

Donboy

IS-IT--Management
Aug 20, 2002
73
US
I can send mail any way I want, except if I try to send mail from one local account to another local mailbox, it returns an error. I am hosting both rpgdomains and websupport.cc on the same box.

Aug 31 15:47:49 slaveone qmail: 1062362869.236069 new msg 329106
Aug 31 15:47:49 slaveone qmail: 1062362869.236174 info msg 329106: bytes 800 from <donboy@websupport.cc> qp 8305 uid 501
Aug 31 15:47:49 slaveone qmail: 1062362869.335562 starting delivery 4: msg 329106 to local donboy-scott@rpgdomains.com
Aug 31 15:47:49 slaveone qmail: 1062362869.335640 status: local 1/10 remote 0/20
Aug 31 15:47:49 slaveone qmail: 1062362869.340605 delivery 4: failure: Sorry,_no_mailbox_here_by_that_name._(#5.1.1)/
Aug 31 15:47:49 slaveone qmail: 1062362869.340697 status: local 0/10 remote 0/20
Aug 31 15:47:49 slaveone qmail: 1062362869.450956 bounce msg 329106 qp 8308
Aug 31 15:47:49 slaveone qmail: 1062362869.451036 end msg 329106
Aug 31 15:47:49 slaveone qmail: 1062362869.451407 new msg 329107
Aug 31 15:47:49 slaveone qmail: 1062362869.451459 info msg 329107: bytes 1340 from <> qp 8308 uid 506
Aug 31 15:47:49 slaveone qmail: 1062362869.578587 starting delivery 5: msg 329107 to local donboy-donboy@websupport.cc
Aug 31 15:47:49 slaveone qmail: 1062362869.578712 status: local 1/10 remote 0/20
Aug 31 15:47:49 slaveone qmail: 1062362869.582195 delivery 5: failure: Sorry,_no_mailbox_here_by_that_name._(#5.1.1)/
Aug 31 15:47:49 slaveone qmail: 1062362869.582579 status: local 0/10 remote 0/20
Aug 31 15:47:49 slaveone qmail: 1062362869.718796 bounce msg 329107 qp 8311
Aug 31 15:47:49 slaveone qmail: 1062362869.718972 end msg 329107
Aug 31 15:47:49 slaveone qmail: 1062362869.719297 new msg 329106
Aug 31 15:47:49 slaveone qmail: 1062362869.719478 info msg 329106: bytes 1794 from <#@[]> qp 8311 uid 506
Aug 31 15:47:49 slaveone qmail: 1062362869.844613 starting delivery 6: msg 329106 to local donboy-postmaster@websupport.cc
Aug 31 15:47:49 slaveone qmail: 1062362869.844744 status: local 1/10 remote 0/20
Aug 31 15:47:49 slaveone qmail: 1062362869.848290 delivery 6: failure: Sorry,_no_mailbox_here_by_that_name._(#5.1.1)/
Aug 31 15:47:49 slaveone qmail: 1062362869.848861 status: local 0/10 remote 0/20
Aug 31 15:47:49 slaveone qmail: 1062362869.849005 triple bounce: discarding bounce/329106
Aug 31 15:47:49 slaveone qmail: 1062362869.900727 end msg 329106

Here is the output of qmail-showctl:

[root@slaveone bin]# qmail-showctl
-bash: qmail-showctl: command not found
[root@slaveone bin]# ./qmail-showctl
qmail home directory: /var/qmail.
user-ext delimiter: -.
paternalism (in decimal): 2.
silent concurrency limit: 120.
subdirectory split: 23.
user ids: 500, 501, 502, 0, 503, 504, 505, 506.
group ids: 500, 501.

badmailfrom: (Default.) Any MAIL FROM is allowed.

bouncefrom: (Default.) Bounce user name is MAILER-DAEMON.

bouncehost: (Default.) Bounce host name is websupport.cc.

concurrencylocal: (Default.) Local concurrency is 10.

concurrencyremote: (Default.) Remote concurrency is 20.

databytes: (Default.) SMTP DATA limit is 0 bytes.

defaultdomain: Default domain name is .

defaulthost: (Default.) Default host name is websupport.cc.

doublebouncehost: (Default.) 2B recipient host: websupport.cc.

doublebounceto: (Default.) 2B recipient user: postmaster.

envnoathost: (Default.) Presumed domain name is websupport.cc.

helohost: (Default.) SMTP client HELO host name is websupport.cc.

idhost: (Default.) Message-ID host name is websupport.cc.

localiphost: (Default.) Local IP address becomes websupport.cc.

locals:

me: My name is websupport.cc.

percenthack: (Default.) The percent hack is not allowed.

plusdomain: Plus domain name is websupport.cc.

qmqpservers: (Default.) No QMQP servers.

queuelifetime: (Default.) Message lifetime in the queue is 604800 seconds.

rcpthosts:
SMTP clients may send messages to recipients at localhost.
SMTP clients may send messages to recipients at websupport.cc.
SMTP clients may send messages to recipients at rpgdomains.com.

morercpthosts: (Default.) No effect.

morercpthosts.cdb: (Default.) No effect.

smtpgreeting: (Default.) SMTP greeting: 220 websupport.cc.

smtproutes: (Default.) No artificial SMTP routes.

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: websupport.cc:donboy
Virtual domain: rpgdomains.com:donboy
 
I should be more clear.
The prior statement is true, you are trying to deliver to an account called DonBoy because your virtual domains file specifies that the user to deliver to has no domain in its username. Therefore, the attempt is made to &quot;donboy&quot; at the host's local domain.

Let's assume that you REALLY wanted the mail to go to donbay@websupport.cc as a local user. Then you would move &quot;websupport.cc&quot; to locals and out of virtualdomains.

Let's consider another case. The host name is &quot;flubber.example.org&quot;. THEN you could create a local user named &quot;donboy&quot; (you would alter the 'me' control value) and your virtual mail to websupport.cc is going to be delivered to the local user.

You've been at this along, Donboy.

Perhaps if you took a step back from your qmail hacking and actually described what you're trying to accomplish, we might be able to better help you?!

Good luck






&quot;Surfinbox Shares&quot; - A fundraising program that builds revenue from dialup Internet users.
 
Ok, good idea. here's what I'm shooting for:

I want to have several accounts under websupport.cc. Right now, I've got Donboy, Scott and a few others. I want their mail to be delivered normally, so if somebody sends mail to either of them, it'll arrive just as you'd expect.

At the same time, if there is any excess mail, like mail sent to nobody@websupport.cc, I'd like those messages to arrive in &quot;donboy&quot;'s mailbox. This way, if people send mail to &quot;scott&quot; he will get his mail as normal. If people send mail to &quot;sales&quot; I probably will not have that mailbox created, so I want those messages to be sent to donboy so I can see them.

Thanks for asking. I hope what I'm looking for can be done.... easily.
 
Wait a minute... this is madness! I had qmail running great the other day and I haven't really touched it at all, but now I realize I'm unable to send mail to any of my accounts! All mail sent to any local accounts is returned saying &quot;no mailbox here by that name&quot;. What could have gone wrong?!?! My showctl output looks great, IMO.

Any ideas?

I'm going to keep fiddling with it until I begin to understand what went wrong.
 
Ok, I'm officially a nut-case. I just realized for some reason I had my donboy directory chown'ed as root. I don't know how or when I did that, but it was obviously a mistake.

Anyway, I fixed that and now I'm back in business for most of my mailboxes. Now the trouble is, I can't discriminate between scott's mailbox and donboy's.

If I send mail to scott@websupport.cc, I end up getting his mail in my inbox. I'm sure it's because the .qmail-default file what's causing it to come to me, but how can I override this?

I've tried making a .qmail-scott file under donboy's home directory and inside this file, I added his name &quot;scott&quot; but it's still not working. The message I get is...

&quot;This message is looping: it already has my Delivered-To line&quot;

This is also true if I use &scott instead.

I will keep reading and if you see this message before I can figure it out myself, please let me know what you think.
 
Donboy,
Your description has helped. My suggestion is this.
Consider moving websupport.cc to be a local domain, not virtual. It doesn't make sense to me to have it be virtual if the host is &quot;websupport.cc&quot; (I would recommend hostname mail.websupport.cc, BTW).

Then, with local accounts created for Scott, Donboy, Sales, etc., you can adjust your .qmail-default to reflect your catchall account requirements as found in this thread.


I would also recommend that you read the &quot;LOCAL USER DELIVERIES&quot; and &quot;VIRTUAL DOMAIN/USER DELIVERIES&quot; sections of this HOWTO


I think your strategy would be sound if you made &quot;websupport.cc&quot; local and &quot;rpgdomains&quot; virtual. Then you could insert the proper catchall and forwarding in your .qmail-xxxx files and get delivery to work.

assuming your username is $1 in this bash snippet, you would set the permissions thusly.

chmod -R 755 ./Maildir
chmod 644 .qmail
chown -R $1 ./Maildir
chown $1 .qmail

excerpted from:




&quot;Surfinbox Shares&quot; - A fundraising program that builds revenue from dialup Internet users.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top