[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [cobalt-users] very basic email setup



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

> When I create a user in a virtual site, the user and all the user's
> email aliases are listed in the virtusertable as
> username@xxxxxxxxxxxxxxxxxx, plus
> aliasesforusername@xxxxxxxxxxxxxxxxxxx Is this standard?

Yes.  By default, sendmail accepts email for user@xxxxxxxxxxxxxxx, and 
'rewrites' it to be for the local user name (login name).  So 
someplace in virtusertable is an entry:

user@xxxxxxxxxxxxxx	loginname

_If_ you have entered 'domain.com' in the Mail Server Aliases field 
for the virtual site, an entry is made in the 'accept-email-at' 
section:

@domain.com	%1@xxxxxxxxxxxxxx

which rewrites user@xxxxxxxxxx to user@xxxxxxxxxxxxxx, which then gets 
rewritten to loginname.

If you do not make the Mail Server Alias setting, this 'translation' 
entry does not get made in virtusertable, and sendmail will not 
accept email for user@xxxxxxxxxx as it doesn't know it's supposed to 
be accepting mail for that domain.

> I cannot receive email for these user accounts unless I manually go
> into the vtable and add username@xxxxxxxxxxxxxx  (without the www).

> For the usernames I added an alias in the vtable without the www,
> there is this message: mailer=local, stat=sent, and the accounts
> receive the message.

/etc/mail/aliases is meant for external redirection only (if you enter 
a forwarding address for a user), as well as some on-box rewrites 
(for postmaster, etc).

> Under control panel/ email parameters, I have nothing in the relay
> box

This is wrong.  You should have all the IP addresses on the RaQ, as 
well as the 'base' domain name (which the mail server actually 
operates as) in the "Relay for the following Hosts/Domains" box.  
Also any domains or IPs you wish to add as 'allowed'.  This info is 
read from /etc/mail/access

> and nothing in the host/domains box (Raq4r).

This too is wrong.  There should be a complete list of all full domain 
names (www.domain.com, host.otherdomain.com, etc) on the server, 
including the base domain.

- -- 
Bruce Timberlake

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (GNU/Linux)

iD8DBQE+ODSSvLA2hUZ9kgwRAokrAJ4wOYKvucESjI7gp2T61//dO/6pDgCfWj+z
vEIotUz096nkJ8IoGpVcErc=
=XIWA
-----END PGP SIGNATURE-----