PDA

View Full Version : Mail to IP-adres



Wouter
06-26-2005, 01:55 PM
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?

nobaloney
06-26-2005, 03:49 PM
You probably need a systemwide postmaster account or a systemwide alias for postmaster.

Jeff

Wouter
06-26-2005, 10:01 PM
Can you tell me how I can setup that?
I'm running FreeBSD 5.4-p2.

Thanks in advance.

nobaloney
06-26-2005, 10:15 PM
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: address@example.com

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

Wouter
06-27-2005, 11:35 AM
Originally posted by jlasman
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: address@example.com

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 root@server.hostname. 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 :)

Wouter
07-01-2005, 01:48 PM
Nobody? :(

nobaloney
07-01-2005, 03:30 PM
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