1. kjf46's Avatar

    Firstly I'm new to BB but wanted to push my mail from my own Linux mail server. I couldn't get IMAP working at all. Important to note I already have a working mail server using:


    My goal was to push a copy of all email sent to only me but as I get big attachments I wanted to only push mail below a certain size and all mail even that sent 'locally' between family that doesn't leave my network. I wanted to share how I achieved this as I found little in the way of dedicated BB Push info for Linux/Open Source. There is an open source solution Funambol but I wanted to try and do something without opening holes in my firewall or adding addition load on my server by having additional software.

    In my account home directory I added a .foward file :

    touch ~/.forward
    chmod 644 ~/.forward

    then added the following :

    "|IFS=' '&&exec /usr/bin/procmail -f-||exit 75 #my_user_name_on_server"

    Then added the following .procmailrc file:

    touch ~/.procmailrc

    then added the following :

    # routes incoming mail to appropriate mailboxes
    VERBOSE=no # Change to 'no' once you have it working

    * < 50000
    * ^TO_me@my.domain.co.uk
    | /usr/sbin/sendmail.postfix -f me@my.domain.co.uk my@blackberry.provider.co.uk

    Description of what above does

    :0c = Copies the mail
    * < 50000 = under size in bytes
    * ^TO_me@my.domain.co.uk = Sent to this address
    | /usr/sbin/sendmail.postfix = Pipe it to sendmail (postfix in this case)
    -f me@my.domain.co.uk = this is important ISP bounces unless it has valid address
    my@blackberry.provider.co.uk = valid BB address

    You can add as many of the sections or recipes above as you need for mail addresses, I have added a few for my different accounts plus one for my 'internal' mail address to catch internal mail.

    The mail is pushed after it has been checked for spam etc and it appears on my BB with the original email address still intact.

    Hope thats been useful.

    06-13-08 07:13 AM
  2. iLdn's Avatar
    hi kjf46,

    i'm very very interested on configuring a push mail server on my Ubuntu Server. But after all i have to configure a mail server

    May you tell me how to set it up? i want to make something like you..

    thank you very much,
    06-17-09 06:38 AM
  3. atlaswing's Avatar
    Interesting. Will stick to your post for further updates.

    Posted from my CrackBerry at wapforums.crackberry.com
    06-17-09 11:47 AM