Forum Replies Created
-
AuthorPosts
-
Overrider
Participantwell it depends on how often you need to use this. the main reason i had to make this script was that sometimes i was on the road and people from the office called me and said the filemaker was gone. without the possibility to access a computer i reverted to my p900 mobile phone which has a ssh programm on it to log into my server. typing the long string of commands is painfull when dome from a p900 onscreen keyboard, instead my login i use auto opens the script and i only have to press a number.
Overrider
Participantand no, i dont have them working right now. the main thing is i really want to boot of the network, instead of users having data on their local drives. this is for security reasons. after booting of the network i made some changes to the install, but after restarting they where gone. makes sense, but as i said i need some data to be available individually like email.
Overrider
Participantsee, thats already bad, i have at least 8 Users with more than 3 gb of mail in entourage 2004.
Overrider
ParticipantHi,
i made a little shell script which can do this. just copy and paste it into a texteditor and save it as scriptname.sh . then you can execute this via the terminal using sh scriptname.sh .
[CODE]
#!/bin/bash
OPTIONS="STOP START LIST 0200 REBOOT EXIT"
FMSLOCATION=/FileMaker\ Server\ 5.5/Filemaker\ Server\ Config.app/Contents/Resources/select opt in $OPTIONS; do
if [ "$opt" = "STOP" ]; then
echo Forcing the Server to stop…
"$FMSLOCATION"/fmserverd STOPelif [ "$opt" = "START" ]; then
echo Starting the Server…
"$FMSLOCATION"/fmserverd STARTelif [ "$opt" = "LIST" ]; then
echo Listing served Files…
"$FMSLOCATION"/fmserverd FILESelif [ "$opt" = "0200" ]; then
echo Replacing current Copy with 0200 backup…
ditto /Volumes/Fmpbackup/0200/ /Volumes/Fmpserver/FileMaker\ Server\ 5.5/elif [ "$opt" = "REBOOT" ]; then
echo Rebooting the Computer…
sudo rebootelif [ "$opt" = "EXIT" ]; then
echo see you next time…
exitelse
clear
echo couldnt understand that command…
fi
done
[/CODE]make sure you change the $fmslocation to the same path as your filemaker server application. make sure you run this script with enough privileges. if it doesnt work at all fo some reason, i assume it is cause the format fuc*** up when i posted it here and you have some space character in there somewhere. just let me know and i will send you a zip file with the script.
regards,
Overrider
Overrider
ParticipantWhen i modify my Recipe so it forwards to an E-Mail Address not local, meaning for example to [email protected], it works just fine.
Also , when i modify my recipe so it says| /usr/bin/cyrus/bin/deliver -e -a me -m user/me
instead of [email protected] it also works just as expected.
Why is that? Could it be as simple as that my postfix config has something wrong, or could it be because the way Postfix and Procmail interact with each other? Meaning i send a mail, it gets filtered by procmail, forwarded to my address, because the address is on the same Server it is being filtered again, forwarded again, etc, etc.?
Any Suggestions?
Overrider
Overrider
ParticipantWhen i modify my procmailrc recipe, so it says :0 cw (wait for exitcode, and copy) it sends me a Mail, and puts another one in the queue.
Overrider
ParticipantHello all,
maybe i tackled my Problem from a wrong direction. Today i took the painful time to reinstall my OSX Server. First thing i did was getting Mail running and trying again to set up procmail like described in the article on afp548. the outcome: it still doesnt follow my example recipe to forward mails with subject test to my account.
Now i am thinking that procmail probably works, but whenever i try to forward with it, meaning i use the ! character to forward, it doesnt work and the mail sits in the mailq. Can anybody help with this scenario?Thanks,
O
Overrider
Participantwell, still did not quiet figure it out, but now it became a mission. I found out something new tough;
Before i said when i place a recipe inside /Users/$USER everything works fine. That is still true; but as you can see in the first logfile i posted earlier, first it finds a match, continues processing and then tries to find a recipe in the Users Homefolder my recipe is trying to forward to. It cant find a recipe, cause there isnt one, logs a “Couldnt read ~/.procmailrc and then delivers the Mail. Now if i also place a recipe in that Users Folder, it will not work again, and show the same log message like in my second posted log above….strange. Seems like it is getting into some kind of loop which causes the Mail to stay in the mailq. Anybody any Ideas?
Am i writing too much or something, cause nobody answers…I think the Problem i have is probably easy to fix for someone who know procmail/postfix on osx. The only thing i want to do is have a Global Procmail recipe in f.e /procmail/procmail.common, and no recipes in the users Homefolders.
Regards,
OOverrider
ParticipantDoes this seem so hard to figure out? I am now on this Issue since 4 Days or so, and nobody seems to have the solution. Starting to get a little frustrated;I only want to install Procmail site-wide. If anybody can help me to fix this, please Post your answer or suggestion. Why does the Logfile say something with Postfix at the end when it is using a /Users/$USER/.promacilrc file to forward a matching e-mail, but when i use a recipe sitting in some other location than the User Folder it is saying something with sendmail.
In OSX, are there extra config files for sendmail, or is everything done in /etc/postfix/main.cf and master.cf?Regards,
OOverrider
Participanton the first quote of my logfile where it says procmail: Couldn’t read “/Users/me/.procmailrc” everything works fine. thats because i am invoking a recipe which is located in admins homefolder, and others (like “me”) dont have a .procmailrc file.
the second quote is my problem, i dont want to have recipes in every persons homefolder, only one folder with recipes for everyone, but whenever i try to invoke a recipe like this f.e INCLUDERC=/rc/.procmailrc, it wont work. i cant see why not.so again:
[quote:5f3d49d853]
this works# Master Procmail Recipe for Postfix > Procmail > Cyrus
#
###
PATH=/bin:/usr/bin:/usr/bin:/etc
DELIVERTO=”/usr/bin/cyrus/bin/deliver”
USERINBOX=”$DELIVERTO -e -a $USER -m user/$USER”
SHELL=/bin/shVERBOSE=on
LOGFILE=”/procmail.log”INCLUDERC=/Users/$USER/.procmailrc
#INCLUDERC=/etc/.procmailrc:0 w
| $USERINBOX[/quote:5f3d49d853]
[quote:5f3d49d853]
this doesnt, but it should# Master Procmail Recipe for Postfix > Procmail > Cyrus
#
###
PATH=/bin:/usr/bin:/usr/bin:/etc
DELIVERTO=”/usr/bin/cyrus/bin/deliver”
USERINBOX=”$DELIVERTO -e -a $USER -m user/$USER”
SHELL=/bin/shVERBOSE=on
LOGFILE=”/procmail.log”#INCLUDERC=/Users/$USER/.procmailrc
INCLUDERC=/etc/.procmailrc:0 w
| $USERINBOX[/quote:5f3d49d853]
Please help if you can,
Thanks,
OOverrider
ParticipantThis is what my /procmail.log file says after i send a mail with the recipe in the homefolder
[quote:e36610b046]
procmail: Assigning “INCLUDERC=/Users/admin/.procmailrc”
procmail: Match on “^Subject:.*test”
procmail: Assigning “LASTFOLDER=/usr/sbin/sendmail -oi
[email protected]”
procmail: Notified comsat: “cyrus@:/usr/sbin/sendmail -oi [email protected]”
Subject: Test
Folder: /usr/sbin/sendmail -oi [email protected] 558
procmail: Executing “/usr/sbin/sendmail,-oi,[email protected]”
procmail: Assigning “INCLUDERC=/Users/me/.procmailrc”
procmail: Couldn’t read “/Users/me/.procmailrc”
procmail: Executing “/usr/bin/cyrus/bin/deliver,-e,-a,me,-m,user/me”
procmail: Assigning “LASTFOLDER=/usr/bin/cyrus/bin/deliver -e -a me -m user/me”
procmail: Notified comsat: “cyrus@:/usr/bin/cyrus/bin/deliver -e -a me -m user/me”
Subject: Test
Folder: /usr/bin/cyrus/bin/deliver -e -a me -m user/me 665
[/quote:e36610b046]this is what the logfile says after i send a mail with the recipe in /rc/.procmailrc
[quote:e36610b046]
procmail: Assigning “INCLUDERC=/rc/.procmailrc”
procmail: Match on “^Subject:.*test”
procmail: Assigning “LASTFOLDER=/usr/sbin/sendmail -oi [email protected]”
procmail: Notified comsat: “cyrus@:/usr/sbin/sendmail -oi [email protected]”
Subject: Test
Folder: /usr/sbin/sendmail -oi [email protected] 558
procmail: Executing “/usr/sbin/sendmail,-oi,[email protected]”
procmail: Assigning “INCLUDERC=/rc/.procmailrc”
procmail: Match on “^Subject:.*test”
procmail: Assigning “LASTFOLDER=/usr/sbin/sendmail -oi [email protected]”
procmail: Notified comsat: “cyrus@:/usr/sbin/sendmail -oi [email protected]”
Subject: Test
Folder: /usr/sbin/sendmail -oi [email protected] 665
procmail: Executing “/usr/sbin/sendmail,-oi,[email protected]”
[/quote:e36610b046]see that the last line is different? why?
this is really taking no end. i am gonna install on a fresh machine and try as well. i am starting to agree with mactroll….grrrr.
Later,
OverriderOverrider
ParticipantNow i am 95 Percent sure it is a Permission Error. I put the recipe into a Home Folder, it works. I put it into /rc/.procmailrc and it doenst work. My procmail.log gives me following output
[quote:64ce4e10fc]
procmail: Assigning “INCLUDERC=/rc/.procmailrc”
procmail: Couldn’t read “/rc/.procmailrc”
procmail: Executing “/usr/bin/cyrus/bin/deliver,-e,-a,admin,-m,user/admin”
procmail: Assigning “LASTFOLDER=/usr/bin/cyrus/bin/deliver -e -a admin -m user/admin”
procmail: Notified comsat: “cyrus@:/usr/bin/cyrus/bin/deliver -e -a admin -m user/admin”
Subject: Test
Folder: /usr/bin/cyrus/bin/deliver -e -a admin -m user/admin 558[/quote:64ce4e10fc]
It says “couldnt read”, so i guess the Permissions are wrong. Right now they are
-rwx–x–x 1 root admin 42 17 Jun 21:36 .procmailrcAny Ideas?
Thanks
-
AuthorPosts
Recent Comments