On Friday 09 April 2004 17:40, Kevin Barnard wrote:
Whenever I send mail I want it to appear as coming from
us...@mydomain.com. What happoens is it gets sent as
us...@www.mydomain.com which is the hostname. I've setup mydomain.com
in the me and defaultdomain files. This doesn't appear to have any
effect. This seems like it would be simple yet I can't seem to get it.
What am I doing wrong?
The FROM address is set by the mail client, not by courier. Check your
account configuration in Mutt (I don't use it so I can help you) and set it
to be what you want.
If you are sending mail from SqWebMail then the FROM address should be
"account_name@default_domain" although there's a setting that allows users to
change the FROM address in SqWebMail as well.
BTW as I test I send a message to kbarnard a local account to kbarnard
without any domain name and the message doesn't go anywhere. I am
using mutt to send the message. I would say think it might be a mutt
problem but I don't get any of the system messages from cron either.
Courier will not accept mail through SMTP that does not have a fully qualified
address. So sending mail to "kbarnard" will never work - courier will reject
it. If mail is submitted through a program like sendmail on the command
line, however, then sendmail will add the default domain to any address that
doesn't have a domain. So you can do something like "sendmail kbarnard <
msg.txt" and sendmail will submit the message for "kbar...@domain.com" (or
whatever your default domain is).
If you're not getting any mail from cron then something is wrong. Courier
won't deliver mail to 'root' - it is usually aliased to 'postmaster' in the
courier/etc/aliases/system file. So do you have a postmaster account or have
you aliased postmaster to another account?