fetchmail and postfix mail setup on Snow Leopard - request for guidance
Howdy, I hope it is ok to post this here.
I would like to do all my POP3 email with fetchmail, postfix and emacs. On Snow Leopard 10.6.8 - this is not urgent and I really want to do it in one of the right ways.
USER = machine user
user = email user
My fetchmailrc
Downloaded the Cert file from host and renamed it .pem and did
works - fetchmail gets the mail.
I downloaded a mail that way to test it, and its sitting in:
I have had a mail setup with fetchmail, mutt and exim on a thinkpad running debian, but I still do not really understand how it works - following instructions, but not fully understanding how the mail is handled on my machine.
here is a log entry on running postfix:
... why is postfix knocking on my mailservers door - I thought fetchmail got that job?
I have a Mail folder in my home directory. I assume that the mail
arrives / gets written in mbox format. I assume that postfix is my MTA
and that it should put my email into a system mailbox belonging to
USER ? Or maybe directly into my homefolder mailbox ?
How do I get my mail into my Mail Folder? (and how did the testmail get into the 'deferred' folder?)
thank you all in advance for pointing out and directing me. I promise to write a complete HOWTO on setting this up when I understand it, with your help. peace
... later - I have read half the night and edited the /etc/postfix/main.cf file followed instructions and added the server ca.crt, tls, and so on. It kinda works - I can:
and the mail actually arrives.
postfix still said it could not verify the certificate so I changed tls_security to 'encrypt' for now. I have
in the main.cf file and its a file now - started with a directory.
But sending mail to myself now fails - postfix takes my user before the @ and says 'user' unknown (which is true of course) and bounces the mail back. I think I have to map names and aliases ...
... well, I asked for this - full acceptance, no guitars.
Last edited by butterbaerchen; 12-18-2011 at 08:38 PM..
Reason: add text
So where is this "user@domain" ? is it a local user on your machine where you are running fetchmail?
Post output from postfix -n, lets see how your configuration looks like?
And tell us a little more about your setup. You are trying to download email from your pop3 server using fetchmail, so what's the end goal? do you want that email delivered to a local user or want to relay it to another domain.
If the user@domain is a local user, then I would put this line in fetchmail. This way when you download email with fetchmail, it will bypass postfix and just use procmail. Off course make sure you have /usr/bin/procmail
So where is this "user@domain" ? is it a local user on your machine where you are running fetchmail?
Post output from postfix -n, lets see how your configuration looks like?
Hi dude2cool,
yep, local user and one pop3 account on my ISP. that is what all this fuss is about.
... the message about your reply to this thread was the first one to land in my Mailbox file in my home directory...
Thank you for taking a look - I will try your procmail line in fetchmailrc.
Another thing - masking all my ISP info makes it harder to help? Should I just paste it all in cleartext (except for the password)? What is the standard procedure this day and age?
I want this just for receiving and sending mail on this one machine, for one local user (me) - I do have years of mailinglist emails and archives (mbox files) and I would like to use gnus to read that and throw regexpressions at it.
... added your line to .fetchmailrc
created .procmailrc by stealing one from the internet and changing it.
stopped the postfix mail system - ran fetchmail and it works fetched a testmail and procmail appended it to my Mailbox File.
... what about sending mails?
Last edited by butterbaerchen; 12-18-2011 at 09:59 PM..
Reason: add text
I do get mails into the Mailbox File - and can read them fine - mbox format
fetchmails smtp transaction error with localhost (my machine) is mentioned on the net - some people say it happened when leopard turned
to snow leopard.
The mail.server certificate I downloaded is there but checking it has to be turned off in postfix by changing the value:
to = encrypt, otherwise the tls handshake wont go through - no mail (postfix that is)
and that changes "Trusted TLS Connection established" to "Untrusted TLS Connection ...".
sending mail from the commandline works - as roadie to gmail produces an email sent from 'roadie@roadiemac.bigpond' with my full name
as sender in gmail. I have to figure out how to map 'user@domain.org' to roadie (local user).
I will go and see if there are other mail setups for what I would like to have. Maybe someone here has a suggestion.
get pop3 mail, nokeep on server, put into mbox files for reading on one machine - Dynamic DNS - Sometimes online so need to be able to write
offline and send when going online without using a gui client, that would be nice.
Ok, now. fetchmaillog - polling 3 mailaddresses on one mailserver
And here is the latest .fetchmailrc
here are the activated 'options' in /etc/postfix/main.cf
entries I changed / created
default entries - already present as far as I know
here is a maillog part
---------- Post updated 12-20-11 at 07:58 PM ---------- Previous update was 12-19-11 at 09:30 PM ----------
might as well go slow and pay attention.
so, I learned that the machine has at least 3 names that I can set
what are mine at the moment:
so my hostname got set by the router I guess
I set them all, only changing the Caps to small, in the logs there are no caps either ... ( I think). maybe someone has a hint for me.
---------- Post updated 12-21-11 at 01:14 AM ---------- Previous update was 12-20-11 at 07:58 PM ----------
I fixed it. remember Tom Hanks dancing around the fire on that island? yes.
Seems I had the old openssl 0.9.8 - so I went and installed the new
one 1.0.0 something (which happens to produce a different hash for my beloved mailserver certificate ... cute)
Quote:
for 0.9.8, you get 17a3f64c.0 -> ndn.ca.pem
for 1.0.0, you get 05e36882.0 -> ndn.ca.pem instead
so: ./configure > make > make test > sudo make install
Cook the certificate, not the crust
Convert .crt to .pem via .der :
good. now do the c_rehash again. done
now get fetchmail 6.3.21
now test fetchmail again ..... Y E S
... one step further towards the thunderbirddelete button, mail.app went overboard when I installed this OS - good night for now.
---------- Post updated at 08:42 AM ---------- Previous update was at 01:14 AM ----------
... meanwhile
I found how to send a mail using the mail command, filled in subject, message text and then terminated with single dot (did not get prompted for CC btw .update. there is a .mailrc file to be created
Quote:
``set askcc'' enables the askcc feature
) and off it went.
here is some header information:
replying to roadie at domain.org (which does not exist on mail.server.com gives:
Please correct me if I miss something:
the emailaddress is stitched together from <user>lives on this machine <domain>written into postfix's main.cf.
not being online 24/7, can I make this work without setting up the email in my domain? I can setup a unix account at my host - maybe that is the way to go ... I really wish one of the unix.com gurus was here in Cairns - we would have a nice flat white next sunday (31celsius) and set the thing up _bulletproof_. Merry christmas from here. [goes off to find out about virtual alias tables and the like]
there ....
I did create the mailbox.
but these 2 mails do not get transferred to the Mailbox mbox file in my Home Directory ... I can do it by hand though
s <message list> Mailbox = append message(s) to Mailbox
Last edited by butterbaerchen; 12-22-2011 at 07:23 AM..
Reason: found out something
Hi,
We have few scripts that are run through jobs . It sends us daily reports (using mailx). This was working fine in Leopard. But in Snow Leopard there is problem with the attachments.Neither the attachment name is being displayed correctly(all it displays is "Mail Attachment") nor the format... (1 Reply)
This tutorial.
Which is a lovely tutorial, really, and was working up until this instruction:
Now download db.zip installation archive and place it somewhere and unzip it:
mkdir Install
cd Install
# download db.zip to this directory
unzip db.zip
cd db/Disk1
I didn't know how to... (1 Reply)
I've just installed Alpine on Snow Leopard but can't seem to get a default spell checker configured for it. What happened to spell? I can't find it at all on 10.6, must have been some changes. Does anyone know about the default unix spell checker on SL? Thanks! (0 Replies)
Hello everyone. I was previously using MacPorts 1.8 on Mac OS 10.5.8 without any problems and everything was working well.
I recently upgraded to Xcode 3.2 and Mac OS 10.6, since then my MacPorts installation has not been working at all. I deleted it and then reinstalled the .dmg from the... (1 Reply)