On 9/07/2004, at 9:07 PM, Daniel Garland wrote:

Hi guys,

I've made another step towards my email server (I'm trying to get
fetchmail to talk to Courier), but have come across the problem that
Courier SMTP server doesn't like a @localhost address and gives a syntax
error. Having read up on this, I know it is resolved through using the
smtpaddress variable to stamp on a proper RCPT TO variable.

However, most of the documentation appears to be aimed at professional
administrators, who would have a proper domain name. I on the other hand
do not - and am finding the domain aspect problematic. I know how to
stamp a 'fake' domain name onto my box using the /etc/hosts file, but
this did not change anything.

So far i've tried to send mail to courier using the command
mail -s "subject" [EMAIL PROTECTED]
and
mail -s "subject" [EMAIL PROTECTED]     (the machine's hostname is mail)

and both come through no problems at all. However, if I add another
definition to the /etc/hosts file i.e.

127.0.0.1     localhost    localhost.localdomain     -OR-
192.168.1.2    mail    mail.mydomain.com

and use a similar mail command addressed to mail.mydomain.com or
localhost.localdomain, nothing happens. My question is what domain
should I tag on to the smtpaddress in my .fetchmailrc file to avoid the
courier error, and what configuration files do I need to amend to
implement the false domain?

Any help appreciated, its my first time :)

Courier doesn't read /etc/hosts - you _NEED_ a DNS server. Even if you run one on localhost it's fine, but it must be from DNS.
--
Phillip Hutchings
[EMAIL PROTECTED]
http://www.sitharus.com/

Attachment: smime.p7s
Description: S/MIME cryptographic signature



Reply via email to