Email problem?

bobalobmitchell

New member
Joined
Jan 8, 2005
Messages
2
Hi,

I have had these problems for a few months now, if i try to send an email to the primary email address ie being <username>@stfan.co.uk then no mail will be received using either outlook express or Webmail but, if i try sending a mail to any other username using the same domain eg. [email protected], this mail will be received?? Im not really sure what it could be as iv only had this server for a few months and still learning some basics :rolleyes:
 
Is there a forward set up for that name?

Have you used a shell login to see if the mail is getting to the mailbox?

Have you tried tailing the maillog while sending the mail to see what's happening to it?

Jeff
 
Currently that will only work if the domain is the primary domain. I made this change to the exim.conf to allow the [email protected] to receive mail:
Code:
localuser:
  driver = accept
  check_local_user
  # condition = "${if eq {$domain} {$primary_hostname} {yes} {no}}"
  transport = local_delivery
I just commented out that line, that only allows mail for the primary domain. The condition could be rewritten to insure that the username is a domainowner before delivering.
 
toml said:
Code:
localuser:
  driver = accept
  check_local_user
  # condition = "${if eq {$domain} {$primary_hostname} {yes} {no}}"
  transport = local_delivery
I just commented out that line, that only allows mail for the primary domain. The condition could be rewritten to insure that the username is a domainowner before delivering.
It looks to me as if you may have found something.

Mark, what do you think? Is this code allowing local delivery only for the main domain name and not for other local users?

Jeff
 
Hello,

It *should* be fine like that.. The way system accounts work, is they are all essentially users on the hostname (primary_domain).

For all domains on the system, the [email protected] is actually just a forwarder to the system account. You can confirm that by checking your aliases file. You'll see:
owner: owner

The "owner" on the left, is the forwarder for [email protected], and on the right, it's the username with the hostname on the end. (if you send an email on the system to just a user, exim automatically appends the hostname to the end of it, making it [email protected]).

So by the time all of the email filters through all the directors, all that would be left would be the system accounts ie: *@hostname.com, hence the check for the domain maching the primary_hostname. With that, it shouldn't matter if the condition is there or not.

For a guide on what should be where regarding the hostnames/domains, you can take a look at:

http://help.directadmin.com/item.php?id=16

John
 
Sorry to have bothered you, John.

You'd told me that once before, and of course my job is to remember everything you ever tell me, so I can be the answer man :) .

Yeah right.

I wonder if toml actually had a problem, or if he just read the code and made a pre-entive strike.

toml, did you have a specific problem?

Do you have the forwards?

Jeff
 
When that was added, messages addressed to my email ( as system account not associated with a domain) was not able to receive emails. It was a while ago, and I don't remember exactly what it was doing at the time, but once I removed that, my emails went through. After reading what John said, and looking at the alias files, it sure looks like it would work.
 
Back
Top