fetchmail and postfix mail setup on Snow Leopard - request for guidance

 
Thread Tools Search this Thread
Operating Systems OS X (Apple) fetchmail and postfix mail setup on Snow Leopard - request for guidance
# 8  
Old 12-26-2011
I am learning to use RMAIL, reading the postfix.users mailinglist newsgroup in gnus and a book on postfix. Thunderbird is still in place but I am downloading with fetchmail.
Whats left to do:
get postfix to verify the servercertificate when sending mail (so TLS connection is trusted).
sort out local delivery so mail to root and system mail gets forwarded to user (domain gets appended for one thing when writing to root).
the rest is personal preferences on which mbox/rmail files for what mail.
and then I will write it all down so that I would understand it. Smilie
# 9  
Old 12-26-2011
Quote:
"sort out local delivery so mail to root and system mail gets forwarded to user (domain gets appended for one thing when writing to root)."
do you want the email sent to root and system to end up in your local users mbox?

If I understood that right, here is a link that may help you:

[HOWTO] Forward root's mail to your inbox - Ubuntu Forums
# 10  
Old 12-26-2011
that is exactly what I want to happen. I read that link just yesterday, thank you for posting it. Now, I have a file: /var/root/.forward
and it says: /dev/null (I have not found a root mailbox so far ... where do I create it and with which permissions etc?)
Smilie
and when I send mail to root from the commandline it gets rewritten to:
root @ mydomain.org and postfix sends it off... and it bounces.
and if I put roadie (my username) into that /var/root/.forward file instead of /dev/null - it gets rewritten to roadie @ mydomain.org - and, since that mail account actually exists on the server, - I do get the mail - but from fetchmail - not what I want - the mail should not leave the machine. Smilie

in the article it says to put username@localhost into roots .forward file. good, makes sense but still gets rewritten and sent out. I am reading on how mailqueue and local delivery actually works - but I am slow. Have not found a thread so far that tells how someone set it up in words I understand. What am I missing? ... is it the local_recipient_map in postfix and the postmap command? I get confused with virtual, forward, aliases and all of that.
to me it looks as if roadie and roadie @ domain.org are 2 different identities to postfix - where do I glue them together so that they share the /var/mail/roadie inbox file and local mail arrives direct and not via the mailserver of my hosting company? thank you for giving your time. I am learning heaps btw - great undertaking.

Last edited by butterbaerchen; 12-26-2011 at 10:19 PM.. Reason: flatten email address
# 11  
Old 12-27-2011
Try this, it should help. Atleast with this any mail to root should stay local:

Delivering some but not all accounts locally

Quote:
A drawback of sending mail as "user@example.com" (instead of "user@hostname.example.com") is that mail for "root" and other system accounts is also sent to the central mailhost. In order to deliver such accounts locally, you can set up virtual aliases as follows:

1 /etc/postfix/main.cf:
2 virtual_alias_maps = hash:/etc/postfix/virtual
3
4 /etc/postfix/virtual:
5 root root@localhost
6 . . .
Translation:

Line 5: As described in the virtual(5) manual page, the bare name "root" matches "root@site" when "site" is equal to $myorigin, when "site" is listed in $mydestination, or when it matches $inet_interfaces or $proxy_interfaces.

Execute the command "postmap /etc/postfix/virtual" after editing the file.
This User Gave Thanks to dude2cool For This Post:
# 12  
Old 01-07-2012
project paused

I am leaving sunny cairns for sunny dry india end of february. I have not setup the local mail 100% correct - missing something, but email works fine.
So I am getting used to rmail and mbox logistics for the moment and will dig into the postfix setup in India. Thank you dude2cool for helping - much appreciated. I will get back on this and then hopefully be able to post a complete howto covering installing unix old school mail on snow leopard.
Happy New Year everyone. Smilie
Login or Register to Ask a Question

Previous Thread | Next Thread

4 More Discussions You Might Find Interesting

1. OS X (Apple)

Problem with mail attachment in Snow Leopard

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)
Discussion started by: adash
1 Replies

2. OS X (Apple)

Installing Oracle 10g on Snow Leopard using this tutorial

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)
Discussion started by: khayraB
1 Replies

3. OS X (Apple)

Alpine 2 on Snow Leopard

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)
Discussion started by: platz
0 Replies

4. OS X (Apple)

MacPorts on Snow Leopard

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)
Discussion started by: HoldenCaulfield
1 Replies
Login or Register to Ask a Question