Hello,

if you haven't done so yet, you need to edit the
$PLAN9/mail/lib/rewrite file like that:

# send all mail to the gateway or mail server, $smtp,  for delivery
([^!]*)!(.*)    |       "$PLAN9/mail/lib/qmail '\s' 'xxx.xxx.xxx.xxx'" 
"'\...@\1'"

where xxx.xxx.xxx.xxx is the ip address of your smtp.  I think once I
had some resolution problem, that's why I set it by ip here instead of
by name.  Works fine enough so I never bothered to do it by name
afterwards.

hth,
Mathieu
--- Begin Message ---
I configured mailfs so now I can read email, thanks.
But writing mail is not going so well:

$ cat $PLAN9/log/smtp.fail
myhost Mar 23 11:21:44 bad network /net/net!my.smtp.server!smtp (my.smtp.server)
myhost Mar 23 11:28:06 bad network /net/net!my.smtp.server!smtp (my.smtp.server)
myhost Mar 23 11:34:20 bad network /net/net!my.smtp.server!smtp (my.smtp.server)

after using marshal to send messages. The file
$PLAN9/mail/queue/hugo/E.XXXXXX contains a very similar error

smtp: bad network /net/net!my.smtp.server!smtp (my.smtp.server)

I've been playing around with files inside $PLAN9/mail/lib but no
success so far. Any tips are welcome! :-)

2009/11/21 Mathieu Lonjaret <mathieu.lonja...@gmail.com>:
> On Sat, Nov 21, 2009 at 10:33 PM, Lorenzo Bolla <lbo...@gmail.com> wrote:
>> Hi all,
>> can anyone point me to a document (if any) that explains how to use
>> acme/Mail to read e-mail in Linux?
>> I couldn't find any useful information in the plan9port distribution and it
>> does not work "out-of-the-box".
>> Thanks for your help!
>> L.
>
> 1) build and install mailfs
> cd $PLAN9/src/cmd/upas/
> mk install
> cd nfs
> mk install
>
> 2) configuration
> cd $PLAN9/log; chmod 666 smtp smtp.debug smtp.fail mail >smtp
>>smtp.debug >smtp.fail >mail
> cd $PLAN9/mail/lib
> edit rewrite
> optionnally edit remotemail
>
> 3) authentication
> factotum
> factotum -g 'proto=pass service=imap server=your.imap.server
> user=you_there !password?'
>
> 4) run it!
> mailfs -t your.imap.server (-t is for tls)
> button 2 exec on  'Mail' in acme (without the quotes)
> (you need the plumber running for everything to work as expected in acme)
>
> hth,
> Mathieu
>
>



-- 
Hugo

--- End Message ---

Reply via email to