Mail to IP-adres

Wouter

Verified User
Joined
Jun 15, 2005
Messages
85
Location
The Netherlands
I want to have the posibillity to mail to an user @ ip-adres and then it will be forwarded (all) to root (RFC1123).

So in /etc/exim.conf I have changed

allow_domain_literals = false

to:

allow_domain_literals = true

In /etc/virtual/domains I have added my server's IP:

[1.2.3.4]

(1.2.3.4 is an examply offcourse!)

And restarted Exim:

/usr/local/etc/rc.d/exim restart

DNSREPORTS.COM says it's accepting domain literals now. But when I send an mail to postmaster@[1.2.3.4] it isn't accepted by the system.

And how should the system know where he should dump the messages? I think I'm missing something. Someone have idea's?
 
You probably need a systemwide postmaster account or a systemwide alias for postmaster.

Jeff
 
If you want it to be an alias put a line at the bottom of /etc/aliases, but above any line with "fail" in it, if any:

postmaster: [email protected]

If there's already such a line, then I'd say something else is wrong; have you restarted exim.

If there isn't, put it in, restart exim, and try again.

If you want it to be a real mailbox, as root:

adduser postmaster
passwd postmaster

and then create a postmaster account on your local email program.

Jeff
 
jlasman said:
If you want it to be an alias put a line at the bottom of /etc/aliases, but above any line with "fail" in it, if any:

postmaster: [email protected]

If there's already such a line, then I'd say something else is wrong; have you restarted exim.

If there isn't, put it in, restart exim, and try again.

If you want it to be a real mailbox, as root:

adduser postmaster
passwd postmaster

and then create a postmaster account on your local email program.

Jeff

Thanks for your reply. I want an forwarder (so any@[0.0.0.0] will be forwarded to [email protected]name. In the /etc/aliases file is already an postmaster: <email>. So that's not the problem. I have restarted Exim several times but without any result.

Any other ideas? Thanks in advance :)
 
To go further you'd have to trace the email delivery through exim.

I'd try it with a real postmaster account created from the root prompt:

# adduser postmaster
# passwd postmaster

Then read the account using either webmail or your local email program.

Jeff
 
Back
Top