Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
qmail sending to local users
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
d0wn_under
Guru
Guru


Joined: 13 Mar 2003
Posts: 300
Location: Sheffield, England

PostPosted: Wed Sep 29, 2004 12:01 pm    Post subject: qmail sending to local users Reply with quote

I have qmail setup and working fine both taking email from fetchmail and routing it to internal users and delivering mail from internal users out to the outside world but when I try to send mails internally, ie between users on my internal network, the internal domain name is wrong so the mails get bounced and end up at postmaster.

My internal domain is .int but when I send the mail it gets sent to

user@int.int

The problem is the extra int.

My control files contain:

me:
Code:
int

defaultdomain:
Code:
int

locals:
Code:
int
localhost

plusdomain:
Code:
empty

rcpthosts:
Code:
int
localhost

virtualdomains
Code:
empty


(empty meaning 0 bytes not the actual word empty)

Can anyone help?
Back to top
View user's profile Send private message
adaptr
Watchman
Watchman


Joined: 06 Oct 2002
Posts: 6730
Location: Rotterdam, Netherlands

PostPosted: Wed Sep 29, 2004 2:00 pm    Post subject: Reply with quote

Quote:
My internal domain is .int

..which is not possible.
Either it's domain.int or int.something.
_________________
>>> emerge (3 of 7) mcse/70-293 to /
Essential tools: gentoolkit eix profuse screen
Back to top
View user's profile Send private message
d0wn_under
Guru
Guru


Joined: 13 Mar 2003
Posts: 300
Location: Sheffield, England

PostPosted: Wed Sep 29, 2004 2:22 pm    Post subject: Reply with quote

What do you mean?

The box it is running on is boxa so the FQDN for it is boxa.int

Doesn't that mean the domain is int and the hostname is boxa?
Back to top
View user's profile Send private message
DaveArb
Guru
Guru


Joined: 29 Apr 2004
Posts: 510
Location: Texas, USA

PostPosted: Wed Sep 29, 2004 3:06 pm    Post subject: Reply with quote

d0wn_under wrote:
What do you mean?


Period is an illegal character in a domain name. It is a separator between domain names (like "gentoo" and "org", for example).

Dae
Back to top
View user's profile Send private message
d0wn_under
Guru
Guru


Joined: 13 Mar 2003
Posts: 300
Location: Sheffield, England

PostPosted: Wed Sep 29, 2004 3:22 pm    Post subject: Reply with quote

ok, so if I correct my question to:

Quote:
My internal domain is int but when I send the mail it gets sent to


can anyone give me an answer now?
Back to top
View user's profile Send private message
adaptr
Watchman
Watchman


Joined: 06 Oct 2002
Posts: 6730
Location: Rotterdam, Netherlands

PostPosted: Thu Sep 30, 2004 1:06 pm    Post subject: Reply with quote

Why are both me and defaultdomain set to int ?
Only the domain is int, right ?
So me should be the name of the mail system.
Code:
me = mail, domain = int

means the machine name (according to qmail) will be mail.int.
Replace all the int's with a sensible hostname for the machine, except the one for defaultdomain - that's the only one that actually specifies a domain, the rest all refer to hostnames.
_________________
>>> emerge (3 of 7) mcse/70-293 to /
Essential tools: gentoolkit eix profuse screen
Back to top
View user's profile Send private message
d0wn_under
Guru
Guru


Joined: 13 Mar 2003
Posts: 300
Location: Sheffield, England

PostPosted: Thu Sep 30, 2004 2:52 pm    Post subject: Reply with quote

By changing the me file to be "mail" and putting mail.int in my locals file I can now send mails internally on the box.

But mails are now addressed:

user@mail.int

rather than

user@int

This ties the mail to the machine not the internal domain.

It is closer and at least cron can now send mails!

Any more ideas?
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum