Benutzer-Werkzeuge

Webseiten-Werkzeuge


tachtler:postfix_echo-mailer-script_installieren

Unterschiede

Hier werden die Unterschiede zwischen zwei Versionen angezeigt.

Link zu dieser Vergleichsansicht

Beide Seiten der vorigen RevisionVorhergehende Überarbeitung
Nächste Überarbeitung
Vorhergehende Überarbeitung
Letzte ÜberarbeitungBeide Seiten der Revision
tachtler:postfix_echo-mailer-script_installieren [2015/08/25 08:47] – [Voraussetzungen] klaustachtler:postfix_echo-mailer-script_installieren [2015/08/25 09:07] klaus
Zeile 11: Zeile 11:
   * Programm **''mailx''** - unter [[http://www.centos.org|CentOS]] das RPM-Paket ''mailx''.   * Programm **''mailx''** - unter [[http://www.centos.org|CentOS]] das RPM-Paket ''mailx''.
   * Ein Skript, welches ursprünglich von [[http://www.arschkrebs.de/|Ralf Hildebrandt]] entwickelt wurde und welches unter [[tachtler:postfix_echo-mailer-script_installieren#skriptmailecho|Postfix Echo-Mailer-Script Installieren - Skript: mailecho]] heruntergeladen werden kann!    * Ein Skript, welches ursprünglich von [[http://www.arschkrebs.de/|Ralf Hildebrandt]] entwickelt wurde und welches unter [[tachtler:postfix_echo-mailer-script_installieren#skriptmailecho|Postfix Echo-Mailer-Script Installieren - Skript: mailecho]] heruntergeladen werden kann! 
- 
-===== Installation: mutt ===== 
- 
-Mit nachfolgendem Befehl kann das ''rpm''-Paket - **''mutt''** welches unter [[http://www.centos.org|CentOS]] im ''base''-Repository verfügbar ist, installiert werden: 
-<code> 
-# yum install mutt 
-Loaded plugins: priorities 
-Setting up Install Process 
-1425 packages excluded due to repository priority protections 
-Resolving Dependencies 
---> Running transaction check 
----> Package mutt.x86_64 5:1.5.20-7.20091214hg736b6a.el6 will be installed 
---> Processing Dependency: urlview for package: 5:mutt-1.5.20-7.20091214hg736b6a.el6.x86_64 
---> Processing Dependency: libtokyocabinet.so.8()(64bit) for package: 5:mutt-1.5.20-7.20091214hg736b6a.el6.x86_64 
---> Running transaction check 
----> Package tokyocabinet.x86_64 0:1.4.33-6.el6 will be installed 
----> Package urlview.x86_64 0:0.9-7.el6 will be installed 
---> Finished Dependency Resolution 
- 
-Dependencies Resolved 
- 
-================================================================================ 
- Package          Arch       Version                             Repository 
-                                                                           Size 
-================================================================================ 
-Installing: 
- mutt             x86_64     5:1.5.20-7.20091214hg736b6a.el6     base     1.2 M 
-Installing for dependencies: 
- tokyocabinet     x86_64     1.4.33-6.el6                        base     428 k 
- urlview          x86_64     0.9-7.el6                           base      24 k 
- 
-Transaction Summary 
-================================================================================ 
-Install       3 Package(s) 
- 
-Total download size: 1.7 M 
-Installed size: 5.6 M 
-Is this ok [y/N]: y 
-Downloading Packages: 
-(1/3): mutt-1.5.20-7.20091214hg736b6a.el6.x86_64.rpm     | 1.2 MB     00:00      
-(2/3): tokyocabinet-1.4.33-6.el6.x86_64.rpm              | 428 kB     00:00      
-(3/3): urlview-0.9-7.el6.x86_64.rpm                      |  24 kB     00:00      
--------------------------------------------------------------------------------- 
-Total                                            13 MB/s | 1.7 MB     00:00      
-Running rpm_check_debug 
-Running Transaction Test 
-Transaction Test Succeeded 
-Running Transaction 
-  Installing : tokyocabinet-1.4.33-6.el6.x86_64                             1/ 
-  Installing : urlview-0.9-7.el6.x86_64                                     2/ 
-  Installing : 5:mutt-1.5.20-7.20091214hg736b6a.el6.x86_64                  3/3  
-  Verifying  : 5:mutt-1.5.20-7.20091214hg736b6a.el6.x86_64                  1/3  
-  Verifying  : urlview-0.9-7.el6.x86_64                                     2/ 
-  Verifying  : tokyocabinet-1.4.33-6.el6.x86_64                             3/ 
- 
-Installed: 
-  mutt.x86_64 5:1.5.20-7.20091214hg736b6a.el6                                    
- 
-Dependency Installed: 
-  tokyocabinet.x86_64 0:1.4.33-6.el6         urlview.x86_64 0:0.9-7.el6         
- 
-Complete! 
-</code> 
- 
-Mit nachfolgendem Befehl kann überprüft werden, welche Inhalte mit den Paket **''mutt''** installiert wurden.  
-<code> 
-# rpm -qil mutt 
-Name        : mutt                         Relocations: (not relocatable) 
-Version     : 1.5.20                            Vendor: CentOS 
-Release     : 7.20091214hg736b6a.el6        Build Date: Mon 28 Jul 2014 11:10:54 AM CEST 
-Install Date: Tue 25 Aug 2015 07:57:20 AM CEST      Build Host: c6b8.bsys.dev.centos.org 
-Group       : Applications/Internet         Source RPM: mutt-1.5.20-7.20091214hg736b6a.el6.src.rpm 
-Size        : 4518035                          License: GPLv2+ and Public Domain 
-Signature   : RSA/SHA1, Thu 31 Jul 2014 09:27:07 PM CEST, Key ID 0946fca2c105b9de 
-Packager    : CentOS BuildSystem <http://bugs.centos.org> 
-URL         : http://www.mutt.org/ 
-Summary     : A text mode mail user agent 
-Description : 
-Mutt is a small but very powerful text-based MIME mail client.  Mutt 
-is highly configurable, and is well suited to the mail power user with 
-advanced features like key bindings, keyboard macros, mail threading, 
-regular expression searches and a powerful pattern matching language 
-for selecting groups of messages. 
-/etc/Muttrc 
-/etc/Muttrc.local 
-/usr/bin/mutt 
-/usr/bin/pgpewrap 
-/usr/bin/pgpring 
-/usr/bin/smime_keys 
-/usr/share/doc/mutt-1.5.20 
-/usr/share/doc/mutt-1.5.20/COPYRIGHT 
-/usr/share/doc/mutt-1.5.20/ChangeLog 
-/usr/share/doc/mutt-1.5.20/GPL 
-/usr/share/doc/mutt-1.5.20/Mush.rc 
-/usr/share/doc/mutt-1.5.20/NEWS 
-/usr/share/doc/mutt-1.5.20/Pine.rc 
-/usr/share/doc/mutt-1.5.20/README 
-/usr/share/doc/mutt-1.5.20/README.SECURITY 
-/usr/share/doc/mutt-1.5.20/README.SSL 
-/usr/share/doc/mutt-1.5.20/Tin.rc 
-/usr/share/doc/mutt-1.5.20/UPDATING 
-/usr/share/doc/mutt-1.5.20/ca-bundle.crt 
-/usr/share/doc/mutt-1.5.20/colors.default 
-/usr/share/doc/mutt-1.5.20/colors.linux 
-/usr/share/doc/mutt-1.5.20/gpg.rc 
-/usr/share/doc/mutt-1.5.20/manual.txt 
-/usr/share/doc/mutt-1.5.20/mutt_ldap_query 
-/usr/share/doc/mutt-1.5.20/pgp2.rc 
-/usr/share/doc/mutt-1.5.20/pgp5.rc 
-/usr/share/doc/mutt-1.5.20/pgp6.rc 
-/usr/share/doc/mutt-1.5.20/sample.mailcap 
-/usr/share/doc/mutt-1.5.20/sample.muttrc 
-/usr/share/doc/mutt-1.5.20/sample.muttrc-tlr 
-/usr/share/doc/mutt-1.5.20/smime-notes.txt 
-/usr/share/doc/mutt-1.5.20/smime.rc 
-/usr/share/locale/bg/LC_MESSAGES/mutt.mo 
-/usr/share/locale/ca/LC_MESSAGES/mutt.mo 
-/usr/share/locale/cs/LC_MESSAGES/mutt.mo 
-/usr/share/locale/da/LC_MESSAGES/mutt.mo 
-/usr/share/locale/de/LC_MESSAGES/mutt.mo 
-/usr/share/locale/el/LC_MESSAGES/mutt.mo 
-/usr/share/locale/eo/LC_MESSAGES/mutt.mo 
-/usr/share/locale/es/LC_MESSAGES/mutt.mo 
-/usr/share/locale/et/LC_MESSAGES/mutt.mo 
-/usr/share/locale/eu/LC_MESSAGES/mutt.mo 
-/usr/share/locale/fr/LC_MESSAGES/mutt.mo 
-/usr/share/locale/ga/LC_MESSAGES/mutt.mo 
-/usr/share/locale/gl/LC_MESSAGES/mutt.mo 
-/usr/share/locale/hu/LC_MESSAGES/mutt.mo 
-/usr/share/locale/id/LC_MESSAGES/mutt.mo 
-/usr/share/locale/it/LC_MESSAGES/mutt.mo 
-/usr/share/locale/ja/LC_MESSAGES/mutt.mo 
-/usr/share/locale/ko/LC_MESSAGES/mutt.mo 
-/usr/share/locale/lt/LC_MESSAGES/mutt.mo 
-/usr/share/locale/nl/LC_MESSAGES/mutt.mo 
-/usr/share/locale/pl/LC_MESSAGES/mutt.mo 
-/usr/share/locale/pt_BR/LC_MESSAGES/mutt.mo 
-/usr/share/locale/ru/LC_MESSAGES/mutt.mo 
-/usr/share/locale/sk/LC_MESSAGES/mutt.mo 
-/usr/share/locale/sv/LC_MESSAGES/mutt.mo 
-/usr/share/locale/tr/LC_MESSAGES/mutt.mo 
-/usr/share/locale/uk/LC_MESSAGES/mutt.mo 
-/usr/share/locale/zh_CN/LC_MESSAGES/mutt.mo 
-/usr/share/locale/zh_TW/LC_MESSAGES/mutt.mo 
-/usr/share/man/man1/mutt.1.gz 
-/usr/share/man/man1/smime_keys.1.gz 
-/usr/share/man/man5/muttrc.5.gz 
-</code> 
  
 ===== Skript: mailecho ===== ===== Skript: mailecho =====
Zeile 201: Zeile 53:
 ############################################################################## ##############################################################################
 # Version     : 1.10 - 25.08.2015                                            # # Version     : 1.10 - 25.08.2015                                            #
-# Description : Changed mailer from mail(x) to mutt, because for example,    +# Description : Add header line to mailx, because for example, when German   
-#               when German - "Umlaute" are inside the e-mail, mail(x) will  +#               "Umlaute" are inside the e-mail, mail(x) will generate a     
-#               generate a application/octet-stream as seperate mime-header  +#               application/octet-stream as content_type. To prevent mail(x) 
-#               for the mail body. With mutt there can be used a paramter to +#               from doing that, add a view parameter for charset options    
-#               specify the content type as test/plain                     #+#               and some encoding parameter to the mail(x) call            #
 # -------------------------------------------------------------------------- # # -------------------------------------------------------------------------- #
 # Version     : x.xx                                                         # # Version     : x.xx                                                         #
Zeile 223: Zeile 75:
 HEAD_COMMAND=`command -v head` HEAD_COMMAND=`command -v head`
 LOGGER_COMMAND=`command -v logger` LOGGER_COMMAND=`command -v logger`
-MAIL_COMMAND=`command -v mutt`+MAIL_COMMAND=`command -v mailx`
    
 # Files. # Files.
Zeile 273: Zeile 125:
 echo "Subject: Re: $SUBJECT" >> $FILE_OUT echo "Subject: Re: $SUBJECT" >> $FILE_OUT
 echo "To: $SENDER" >> $FILE_OUT echo "To: $SENDER" >> $FILE_OUT
 +echo "Content-Type: text/html" >> $FILE_OUT
 echo >> $FILE_OUT echo >> $FILE_OUT
 $CAT_COMMAND <<EOT >> $FILE_OUT $CAT_COMMAND <<EOT >> $FILE_OUT
Zeile 296: Zeile 149:
 # Tachtler - Only if mail(x) is not available # Tachtler - Only if mail(x) is not available
 # /usr/sbin/sendmail -i -t -f "" < $FILE_OUT  # /usr/sbin/sendmail -i -t -f "" < $FILE_OUT 
-$MAIL_COMMAND -e 'set content_type=test/plain' < $FILE_OUT+$MAIL_COMMAND -i -t -S ttycharset=UTF-8 -S sendcharsets=UTF-8 -S encoding=8bit < $FILE_OUT
 # Tachtler - Logging # Tachtler - Logging
 # $LOGGER_COMMAND -t echo -i -p daemon.info ">   to=<$SENDER>" # $LOGGER_COMMAND -t echo -i -p daemon.info ">   to=<$SENDER>"
tachtler/postfix_echo-mailer-script_installieren.txt · Zuletzt geändert: 2015/08/25 09:21 von klaus