[95269] users/krischik/Utilities
krischik at macports.org
krischik at macports.org
Sun Jul 8 01:54:08 PDT 2012
Revision: 95269
https://trac.macports.org/changeset/95269
Author: krischik at macports.org
Date: 2012-07-08 01:54:07 -0700 (Sun, 08 Jul 2012)
Log Message:
-----------
Postfix works again
Modified Paths:
--------------
users/krischik/Utilities/Install_Dovecot.command
users/krischik/Utilities/Setup.command
Added Paths:
-----------
users/krischik/Utilities/Make_Postfix_Directories.command
users/krischik/Utilities/Restart_Postfix.command
users/krischik/Utilities/Test_Postfix.command
Modified: users/krischik/Utilities/Install_Dovecot.command
===================================================================
--- users/krischik/Utilities/Install_Dovecot.command 2012-07-08 08:37:45 UTC (rev 95268)
+++ users/krischik/Utilities/Install_Dovecot.command 2012-07-08 08:54:07 UTC (rev 95269)
@@ -25,7 +25,7 @@
"dovecot" \
"fetchmail +fetchmailconf+ssl+ntml" \
"imapfilter" \
- "postfix +dovecot+pcre+tls"
+ "postfix +dovecot+sasl+pcre+tls"
do
Install_Update ${I} ${=General_Variants}
done; unset I
Copied: users/krischik/Utilities/Make_Postfix_Directories.command (from rev 95219, users/krischik/Utilities/Make_Dovecot_Directories.command)
===================================================================
--- users/krischik/Utilities/Make_Postfix_Directories.command (rev 0)
+++ users/krischik/Utilities/Make_Postfix_Directories.command 2012-07-08 08:54:07 UTC (rev 95269)
@@ -0,0 +1,25 @@
+#!/opt/local/bin/zsh
+############################################################## {{{1 ##########
+# $Author$
+# $Revision$
+# $Date$
+# $HeadURL$
+############################################################## }}}1 ##########
+
+setopt X_Trace
+setopt No_Err_Exit
+
+if test "${USER}" = "root"; then
+ gmkdir --parents --verbose /opt/local/var/lib/postfix
+
+ gchown --recursive _postfix:_postfix /opt/local/var/lib/postfix
+ gchown --recursive _postfix:_postfix /opt/local/var/lib/postfix/*(D)
+else
+ setopt Multi_OS
+
+ sudo ${0:a} 1>&1 2>&2 &>~/Library/Logs/${0:r:t}.out
+fi
+
+############################################################ {{{1 ###########
+# vim: set nowrap tabstop=8 shiftwidth=4 softtabstop=4 noexpandtab :
+# vim: set textwidth=0 filetype=zsh foldmethod=marker nospell :
Added: users/krischik/Utilities/Restart_Postfix.command
===================================================================
--- users/krischik/Utilities/Restart_Postfix.command (rev 0)
+++ users/krischik/Utilities/Restart_Postfix.command 2012-07-08 08:54:07 UTC (rev 95269)
@@ -0,0 +1,33 @@
+#!/bin/zsh
+
+setopt X_Trace;
+setopt No_Err_Exit;
+
+
+if test "${USER}" = "root"; then
+ launchctl stop "org.postfix.master"
+ launchctl stop "org.macports.postfix"
+ launchctl unload -w "/Library/LaunchDaemons/org.macports.postfix.plist"
+ launchctl unload -w "/System/Library/LaunchDaemons/org.postfix.master.plist"
+
+ pushd "/opt/local/etc/postfix"
+ postalias "aliases"
+ postmap "access"
+ postmap "canonical"
+ postmap "sender_canonical"
+ postmap "virtual"
+ postmap "relocated"
+ postmap "transport"
+ postmap "generic"
+ postmap "sasl_passwd"
+ postmap "header_checks"
+ popd;
+
+ launchctl load -w "/Library/LaunchDaemons/org.macports.postfix.plist"
+ launchctl stop "org.macports.postfix"
+else
+ sudo ${0};
+fi;
+
+# vim: set nowrap tabstop=8 shiftwidth=4 softtabstop=4 expandtab :
+# vim: set textwidth=0 filetype=zsh foldmethod=marker nospell :
Property changes on: users/krischik/Utilities/Restart_Postfix.command
___________________________________________________________________
Added: svn:executable
+ *
Added: svn:mime-type
+ text/x-shellscript;charset=UTF-8
Added: svn:keywords
+ Author Date Id Revision HeadURL
Added: svn:eol-style
+ LF
Modified: users/krischik/Utilities/Setup.command
===================================================================
--- users/krischik/Utilities/Setup.command 2012-07-08 08:37:45 UTC (rev 95268)
+++ users/krischik/Utilities/Setup.command 2012-07-08 08:54:07 UTC (rev 95269)
@@ -59,6 +59,7 @@
function Load_System ()
{
+ echo "===> Load System"
Load "/Library/LaunchDaemons/org.macports.dbus.plist"
Load "/Library/LaunchDaemons/org.macports.slapd.plist"
Load "/Library/LaunchDaemons/org.freedesktop.dbus-system.plist"
@@ -73,6 +74,7 @@
function Load_User ()
{
+ echo "===> Load User"
Load "/Library/LaunchAgents/org.freedesktop.dbus-session.plist"
if test -d /Applications/MacPorts/KDE4/kdeinit4.app; then
@@ -95,6 +97,7 @@
function Unload_System ()
{
+ echo "===> Load User"
Unload "/Library/LaunchDaemons/org.macports.dbus.plist"
Unload "/Library/LaunchDaemons/org.macports.rsyncd.plist"
Unload "/Library/LaunchDaemons/org.macports.spamd.plist"
@@ -107,6 +110,7 @@
function Unload_User ()
{
+ echo "===> Un-Load User"
Unload "/Library/LaunchAgents/org.freedesktop.dbus-session.plist"
return
@@ -134,8 +138,10 @@
typeset Archive_Owner="$(gstat -c %U .)"
typeset Archive_Group="$(gstat -c %G .)"
+ echo "===> Subversion Cleanup"
svn cleanup
svn revert PortIndex*
+ echo "===> Subversion Update"
svn update
portindex
gchown --recursive ${Archive_Owner}:${Archive_Group} .
@@ -152,6 +158,7 @@
function Update_Packages ()
{
+ echo "===> Upgrade Outdated"
port -p upgrade --enforce-variants outdated ${General_Variants}
return
Added: users/krischik/Utilities/Test_Postfix.command
===================================================================
--- users/krischik/Utilities/Test_Postfix.command (rev 0)
+++ users/krischik/Utilities/Test_Postfix.command 2012-07-08 08:54:07 UTC (rev 95269)
@@ -0,0 +1,42 @@
+#!/opt/local/bin/zsh
+
+############################################################## {{{1 ##########
+# $Author$
+# $Revision$
+# $Date$
+# $HeadURL$
+############################################################## }}}1 ##########
+
+source ${0:h}/Setup.command
+
+setopt X_Trace
+setopt No_Err_Exit
+
+sendmail martin at macpro.local <<-EOF
+Subject: Test Mail
+From: root at macro.local
+To: martin at macpro.local
+
+Test Mail via sendmail
+
+.
+EOF
+
+telnet macpro.local smtp <<-EOF
+HELO macpro.local
+MAIL FROM: root at macro.local
+RCPT TO: martin at macpro.local
+DATA
+Subject: Test Mail
+From: root at macro.local
+To: martin at macpro.local
+
+Test Mail via telnet
+
+.
+
+QUIT
+EOF
+
+# vim: set nowrap tabstop=8 shiftwidth=4 softtabstop=4 noexpandtab :
+# vim: set textwidth=0 filetype=zsh foldmethod=marker nospell :
Property changes on: users/krischik/Utilities/Test_Postfix.command
___________________________________________________________________
Added: svn:executable
+ *
Added: svn:mime-type
+ text/x-shellscript;charset=UTF-8
Added: svn:keywords
+ Author Date Id Revision HeadURL
Added: svn:eol-style
+ LF
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20120708/25a74c2a/attachment.html>
More information about the macports-changes
mailing list