Re: [Bacula-users] Need help to mail messages.

2006-08-03 Thread Erik P. Olsen
Jo Rhett wrote: > On Wed, Aug 02, 2006 at 11:56:40PM +0200, Erik P. Olsen wrote: >> Anyway I could enter epohost into /etc/hosts but the dhcp server does not >> allways give epohost the same address on the lan. Can a script be made >> to detect the correct IP-address and then update /etc/hosts ac

Re: [Bacula-users] Need help to mail messages.

2006-08-02 Thread Jo Rhett
On Wed, Aug 02, 2006 at 11:56:40PM +0200, Erik P. Olsen wrote: > Anyway I could enter epohost into /etc/hosts but the dhcp server does not > allways give epohost the same address on the lan. Can a script be made > to detect the correct IP-address and then update /etc/hosts accordingly? I'm sure

Re: [Bacula-users] Need help to mail messages.

2006-08-02 Thread Erik P. Olsen
Jo Rhett wrote: > Well, login as bacula and run this command >/etc/bacula/bin/bsmtp -h mail.tele.dk -f "(Bacula) [EMAIL PROTECTED]" -s > "Bacula: Backup OK of epohost-fd Full" [EMAIL PROTECTED] > > When this works, the problems in bacula will go away. > > As for why it does a DNS query - it

Re: [Bacula-users] Need help to mail messages.

2006-08-02 Thread Jo Rhett
Well, login as bacula and run this command /etc/bacula/bin/bsmtp -h mail.tele.dk -f "(Bacula) [EMAIL PROTECTED]" -s "Bacula: Backup OK of epohost-fd Full" [EMAIL PROTECTED] When this works, the problems in bacula will go away. As for why it does a DNS query - it needs its own hostname for th

Re: [Bacula-users] Need help to mail messages.

2006-08-02 Thread R.I. Pienaar
Seems the problem is: Fatal gethostbyname for myself failed "epohost": ERR=Success it thinks your local hostname is 'epohost' but that isnt in DNS, you can try adding epohost to /etc/hosts and see if that helps On 02/08/06, Erik P. Olsen <[EMAIL PROTECTED]> wrote: > I don't understand how the bs

[Bacula-users] Need help to mail messages.

2006-08-02 Thread Erik P. Olsen
I don't understand how the bsmtp works. I thought I had found the correct syntax, but I keep getting errors I don't understand. The following is the error messages that I find in the console: 02-Aug 002:51 epo-dir: message.c:454 Mail prog: bsmtp: bsmtp.c:230 Fatal gethostbyname for myself fail