help required: how to get mailutils-comsatd biff notification

View: New views
6 Messages — Rating Filter:   Alert me  

help required: how to get mailutils-comsatd biff notification

by sh4r4d :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi All,

I am new user to mailutils,

In my Ubuntu 9.04 I have installed mailutils
I also copied dot.biffrc

=============================\/=========================
~% aptitude search mailutil
i   libmailutils-dev        - Development files for GNU mailutils                            
i   libmailutils1           - GNU Mail abstraction library                                  
i   mailutils               - GNU mailutils utilities for handling mail
i   mailutils-comsatd       - GNU mailutils-based comsatd daemon      
p   mailutils-imap4d        - GNU mailutils-based IMAP4 Daemon        
p   mailutils-mh            - GNU mailutils-based MH utilities        
p   mailutils-pop3d         - GNU mailutils-based POP3 Daemon          
i   uw-mailutils            - c-client support programs    

~% cp /usr/share/doc/mailutils-comsatd/examples/dot.biffrc ~/.biffrc

~% cat /etc/inetd.conf
biff dgram udp wait root /usr/sbin/comsatd comsatd -i

~% xhost +

=============================/\=========================

and used six line biff script,
=============================\/=========================
#!/usr/bin/env bash
case $1 in
y) chmod u+x `tty`;;
n) chmod u-x `tty`;;
'') ls -l `tty`|sed 's/...x.*/is y/;s/...-.*/is n/';;
*) echo "usage: $0 "'[y|n]' >&2;;
esac
=============================/\=========================

But still unable to get any new mail notification.

I am using postfix to send mail, not to receive mail
I am receiving mail using offlineimap

Attached my /etc/potfix/main.cf also



Please help how to get comsatd both tty and graphical new mail
notifications.

--
Regards and Thanks
Sharad

_______________________________________________
Bug-mailutils mailing list
Bug-mailutils@...
http://lists.gnu.org/mailman/listinfo/bug-mailutils

main.cf (5K) Download Attachment

Re: help required: how to get mailutils-comsatd biff notification

by Sergey Poznyakoff-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hello,

> Please help how to get comsatd both tty and graphical new mail
> notifications.

Follow these steps:

1. Make sure your mail delivery agent is able to send biff
notifications, and is properly configured to do that.
2. Read comsatd documentation [1], especially its part
regarding per-user configuration files [2]:

 [1] http://www.gnu.org/software/mailutils/manual/html_node/comsatd.html
 [2] http://www.gnu.org/software/mailutils/manual/html_node/dot_002ebiffrc.html

3. Make sure your .biffrc matches [2] and has correct permissions.
4. Enable biff notifications by running `biff y'

Regards,
Sergey


_______________________________________________
Bug-mailutils mailing list
Bug-mailutils@...
http://lists.gnu.org/mailman/listinfo/bug-mailutils

Re: help required: how to get mailutils-comsatd biff notification

by sh4r4d :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi Sergey

> Follow these steps:
>
> 1. Make sure your mail delivery agent is able to send biff
> notifications, and is properly configured to do that.

This I do not have correct idea, what MDA should be here,
So I have posted my postfix main.cf file which has

biff = yes

and I configured postfix as null machine can not receive mails.

and I am using offlinemap for syning mail from gmail,its offlinemaprc I am pasting here
        ==========================\/==========================
        [general]
        autorefresh = 30
        accounts = Gmail
        maxsyncaccounts = 1
       
        [Account Gmail]
        localrepository = Local
        remoterepository = Remote
       
        [Repository Local]
        type = IMAP
        remotehost = localhost
        port = 143
        remoteuser = sharad
        remotepass = ********
       
        [Repository Remote]
        type = IMAP
        remotehost = imap.gmail.com
        remoteuser = sh4r4d@...
        remotepass = ********
        ssl = yes
        maxconnections = 1
        realdelete = no
        folderfilter = lambda foldername: foldername in ['INBOX']
       
        # realdelete = no
        ==========================\/==========================

So exactly I can not say who is actually MDA here.

> 2. Read comsatd documentation [1], especially its part
> regarding per-user configuration files [2]:
>
>  [1] http://www.gnu.org/software/mailutils/manual/html_node/comsatd.html
>  [2] http://www.gnu.org/software/mailutils/manual/html_node/dot_002ebiffrc.html
>

Yes both part already before first mail.

> 3. Make sure your .biffrc matches [2] and has correct permissions.

attaching my .biffrc




its permission is
600

> 4. Enable biff notifications by running `biff y'
>

I do not have biff as it conflict with mailutils-comsats in Ubuntu
so using six line biff script.

But still not able to get anything working.
--
Regards and Thanks,
Sharad

_______________________________________________
Bug-mailutils mailing list
Bug-mailutils@...
http://lists.gnu.org/mailman/listinfo/bug-mailutils

.biffrc (1K) Download Attachment

Re: help required: how to get mailutils-comsatd biff notification

by sh4r4d :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi,

Few more thing wanted to add to last post

On Ubuntu 9.04

   comsatd  do not accept --test

and
   mailutils-config --info sysconfdir

return error.

   mailutils-config --info
        VERSION=1.2
        USE_LIBPAM
        HAVE_LIBLTDL
        WITH_GDBM
        WITH_GNUTLS
        WITH_GSASL
        WITH_GSSAPI
        WITH_GUILE
        WITH_PTHREAD
        WITH_READLINE
        HAVE_MYSQL
        ENABLE_VIRTUAL_DOMAINS
        ENABLE_IMAP
        ENABLE_POP
        ENABLE_MH
        ENABLE_MAILDIR
        ENABLE_SMTP
        ENABLE_SENDMAIL
        ENABLE_NNTP

very much different from as given in Manual.

--
Regards and Thanks
Sharad



_______________________________________________
Bug-mailutils mailing list
Bug-mailutils@...
http://lists.gnu.org/mailman/listinfo/bug-mailutils

Re: Re: help required: how to get mailutils-comsatd biff notification

by Sergey Poznyakoff-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

> Few more thing wanted to add to last post

So, let's begin with this one:

>    comsatd  do not accept --test
>
> and
>    mailutils-config --info sysconfdir
>
> return error.
>
>    mailutils-config --info
> VERSION=1.2

Version 1.2 is more than two years old by now. I strongly recommend
to upgrade to the recent Mailutils version (which is 2.1, released
on 10 Sep 2009).

> This I do not have correct idea, what MDA should be here,
> So I have posted my postfix main.cf file which has
>
> biff = yes

OK.

> and I configured postfix as null machine can not receive mails.
>
> and I am using offlinemap for syning mail from gmail,its offlinemaprc
> I am pasting here

I don't know what offlinemap is and what is has to do with biff notification.

> > 3. Make sure your .biffrc matches [2] and has correct permissions.
>
> attaching my .biffrc

It is OK and works fine on my box.

> its permission is
> 600

Good.

> I do not have biff as it conflict with mailutils-comsats in Ubuntu

Huh? What to you mean?

> so using six line biff script.

It's OK.

> But still not able to get anything working.

Verify the following:

1. Is comsat listening on its port?
Run
  netstat -an|grep :512
and verify its output. It should display something similar to

udp        0      0 127.0.0.1:512             0.0.0.0:*

2. Is the delivery agent able to reach the IP address comsat listens
on?
The IP address in question is shown in the output from [1].

3. Does your tty have the `execute' bit on?
Run
  ls -l `tty`
and verify its output.

If the answer on all three questions above is `yes', send some mail
to your account and watch if the notification message appears on the
console. If it does not, than your MDA does not send notifications at
all.

Regards,
Sergey


_______________________________________________
Bug-mailutils mailing list
Bug-mailutils@...
http://lists.gnu.org/mailman/listinfo/bug-mailutils

Re: help required: how to get mailutils-comsatd biff notification

by sh4r4d :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


Hi Sergey,

> Version 1.2 is more than two years old by now. I strongly recommend
> to upgrade to the recent Mailutils version (which is 2.1, released
> on 10 Sep 2009).

Installed 2.1 from source

> I don't know what offlinemap is and what is has to do with biff notification.

offlineimap sync two different imap accounts.

,----[from offlineimap wiki]
| OfflineIMAP is a tool to simplify your e-mail reading. With OfflineIMAP,
| you can read the same mailbox from multiple computers. You get a current
| copy of your messages on each computer, and changes you make one place
| will be visible on all other systems. For instance, you can delete a
| message on your home computer, and it will appear deleted on your work
| computer as well. OfflineIMAP is also useful if you want to use a mail
| reader that does not have IMAP support, has poor IMAP support, or does
| not provide disconnected operation.
`----

> Verify the following:
>
> 1. Is comsat listening on its port?
> Run
>   netstat -an|grep :512
> and verify its output. It should display something similar to
>
> udp        0      0 127.0.0.1:512             0.0.0.0:*

No, my machine output is like

 $ netstat -an|grep :512
 udp6       0      0 :::512                  :::*                              

 
> 2. Is the delivery agent able to reach the IP address comsat listens
> on?
> The IP address in question is shown in the output from [1].
>

I do not have good idea about MDA, but in postfix I guess it is maildrop
I do not know how to test that it can access ip address.


> 3. Does your tty have the `execute' bit on?
> Run
>   ls -l `tty`
> and verify its output.

Now it i on.

  $ cat /etc/inetd.conf look like
  # biff dgram udp wait root /usr/sbin/comsatd comsatd -i
  comsat dgram  udp wait  root  /usr/local/sbin/comsatd            comsatd -c /etc/comsat.conf

and /etc/comsat.conf is empty.


In maillog I am seeing repeated error

   /var/log/mail.err:Oct  7 23:12:52 localhost comsatd[28713]: recvfrom: Socket operation on non-socket


> If the answer on all three questions above is `yes', send some mail
> to your account and watch if the notification message appears on the
> console. If it does not, than your MDA does not send notifications at
> all.

at for Q1 answer is not yes, Q2 output is not same, Q3 answer is yes.
you might have some idea about maillog error.

--
Regards and Thanks,
-sharad



_______________________________________________
Bug-mailutils mailing list
Bug-mailutils@...
http://lists.gnu.org/mailman/listinfo/bug-mailutils