[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: wie kann ich ein bash script in einer ash shel durchfuehren ?
[Thread Prev] | [Thread Next]
- Subject: Re: wie kann ich ein bash script in einer ash shel durchfuehren ?
- From: "Christian Eichert [Gmail]" <eichertc@xxxxxxxxxxxxxx>
- Date: Tue, 21 Feb 2012 21:44:14 +0100
- To: uugrn@xxxxxxxxxxxxxxx
Am 21.02.2012 19:55, schrieb Thomas Stiefel:
>
>
> Du wirst also nicht drum herum kommen die bash zu installieren oder das
> Script umzuschreiben. Eine installierte bash bedeutet ja noch nicht, dass
> du sie auch als Standard-Shell nutzen musst und solange sie nicht benutzt
> wird verbraucht sie auch keine Ressourcen - ausser ein paar KB im
> Filesystem ;-)
>
> Gruss Tom
*Dei' Wort in Gottes Ohrmuschel.
ich habe dann mal schnell bash installiert und mal schnell die gesonderten
Verzeichnisse von optware in die PATH exportiert*
*bash-3.2# PATH=$PATH:/usr/syno/mailstation/sbin*
*bash-3.2# export $PATH*
*Und dann schnell gestartet***
*
-- basics --*
*Postfix: 2.5.5*
*-- smtpd is linked to --*
*./saslfinger: line 90: ldd: command not found*
*./saslfinger: line 90: ldd: command not found*
*-- active SMTP AUTH and TLS parameters for smtpd --*
*broken_sasl_auth_clients = yes*
*smtpd_sasl_auth_enable = yes*
*smtpd_sasl_authenticated_header = yes*
*smtpd_tls_cert_file = /usr/syno/etc/ssl/ssl.crt/server.crt*
*smtpd_tls_key_file = /usr/syno/etc/ssl/ssl.key/server.key*
*smtpd_tls_security_level = may*
*-- listing of /opt/lib/sasl2 --*
*drwxr-xr-x 2 root root 4096 Nov 20 21:33 .*
*drwxr-xr-x 13 root root 12288 Feb 21 09:12 ..*
*-rwxr-xr-x 1 root root 19928 Nov 12 2010
libanonymous.so*
*-rwxr-xr-x 1 root root 19928 Nov 12 2010
libanonymous.so.2*
*-rwxr-xr-x 1 root root 19928 Nov 12 2010
libanonymous.so.2.0.23*
*-rwxr-xr-x 1 root root 22492 Nov 12 2010 libcrammd5.so*
*-rwxr-xr-x 1 root root 22492 Nov 12 2010
libcrammd5.so.2*
*-rwxr-xr-x 1 root root 22492 Nov 12 2010
libcrammd5.so.2.0.23*
*-rwxr-xr-x 1 root root 52028 Nov 12 2010
libdigestmd5.so*
*-rwxr-xr-x 1 root root 52028 Nov 12 2010
libdigestmd5.so.2*
*-rwxr-xr-x 1 root root 52028 Nov 12 2010
libdigestmd5.so.2.0.23*
*-rwxr-xr-x 1 root root 20776 Nov 12 2010 liblogin.so*
*-rwxr-xr-x 1 root root 20776 Nov 12 2010 liblogin.so.2*
*-rwxr-xr-x 1 root root 20776 Nov 12 2010
liblogin.so.2.0.23*
*-rwxr-xr-x 1 root root 20852 Nov 12 2010 libplain.so*
*-rwxr-xr-x 1 root root 20852 Nov 12 2010 libplain.so.2*
*-rwxr-xr-x 1 root root 20852 Nov 12 2010
libplain.so.2.0.23*
*-rwxr-xr-x 1 root root 26368 Nov 12 2010 libsasldb.so*
*-rwxr-xr-x 1 root root 26368 Nov 12 2010
libsasldb.so.2*
*-rwxr-xr-x 1 root root 26368 Nov 12 2010
libsasldb.so.2.0.23*
*There is no smtpd.conf that defines what SASL should do for Postfix.*
*SMTP AUTH can't work!*
*habe dann nachgeschaut das ist kokolores, ich habe eine smtpd.com
warum findet er sie nicht ?*
*bash-3.2# locate smtpd.conf
/usr/syno/mailstation/etc/smtpd.conf*
*Was will uns das program sagen ? wo muss ich die smtp.conf hinschreiben
da mein postfix Verzeichnis ganz wo anders liegt und ganz wieanders heisst habe
ich schnell einen link gesetzt*
* ln -s /usr/syno/mailstation/etc/smtpd.conf /etc/postfix/sasl*
*Das hat das Programm dann gefressen.
Der Kollege hat das Verzeichnis naemlich im Script hartgecodet. Ungewoehnlich,
ich haette es eventuell als variable gemacht und mit find in einer Serie von
Verzeichnissen erst gesucht. Aber egal.*
*bash-3.2# ./saslfinger -s
saslfinger - postfix Cyrus sasl configuration Tue Feb 21 21:16:21
CET 2012
version: 0.9.9.1
mode: server-side SMTP AUTH
-- basics --
Postfix: 2.5.5
-- smtpd is linked to --
./saslfinger: line 90: ldd: command not found
./saslfinger: line 90: ldd: command not found
-- active SMTP AUTH and TLS parameters for smtpd --
broken_sasl_auth_clients = yes
smtpd_sasl_auth_enable = yes
smtpd_sasl_authenticated_header = yes
smtpd_tls_cert_file = /usr/syno/etc/ssl/ssl.crt/server.crt
smtpd_tls_key_file = /usr/syno/etc/ssl/ssl.key/server.key
smtpd_tls_security_level = may
-- listing of /opt/lib/sasl2 --
drwxr-xr-x 2 root root 4096 Nov 20 21:33 .
drwxr-xr-x 13 root root 12288 Feb 21 09:12 ..
-rwxr-xr-x 1 root root 19928 Nov 12 2010 libanonymous.so
-rwxr-xr-x 1 root root 19928 Nov 12 2010
libanonymous.so.2
-rwxr-xr-x 1 root root 19928 Nov 12 2010
libanonymous.so.2.0.23
-rwxr-xr-x 1 root root 22492 Nov 12 2010 libcrammd5.so
-rwxr-xr-x 1 root root 22492 Nov 12 2010 libcrammd5.so.2
-rwxr-xr-x 1 root root 22492 Nov 12 2010
libcrammd5.so.2.0.23
-rwxr-xr-x 1 root root 52028 Nov 12 2010 libdigestmd5.so
-rwxr-xr-x 1 root root 52028 Nov 12 2010
libdigestmd5.so.2
-rwxr-xr-x 1 root root 52028 Nov 12 2010
libdigestmd5.so.2.0.23
-rwxr-xr-x 1 root root 20776 Nov 12 2010 liblogin.so
-rwxr-xr-x 1 root root 20776 Nov 12 2010 liblogin.so.2
-rwxr-xr-x 1 root root 20776 Nov 12 2010
liblogin.so.2.0.23
-rwxr-xr-x 1 root root 20852 Nov 12 2010 libplain.so
-rwxr-xr-x 1 root root 20852 Nov 12 2010 libplain.so.2
-rwxr-xr-x 1 root root 20852 Nov 12 2010
libplain.so.2.0.23
-rwxr-xr-x 1 root root 26368 Nov 12 2010 libsasldb.so
-rwxr-xr-x 1 root root 26368 Nov 12 2010 libsasldb.so.2
-rwxr-xr-x 1 root root 26368 Nov 12 2010
libsasldb.so.2.0.23
-- content of /etc/postfix/sasl/smtpd.conf --
pwcheck_method: saslauthd
mech_list: plain login
-- active services in /usr/syno/mailstation/etc/master.cf --
# service type private unpriv chroot wakeup maxproc command + args
# (yes) (yes) (yes) (never) (100)
submission inet n - n - - smtpd
-o smtpd_tls_security_level=encrypt
-o smtpd_etrn_restrictions=reject
-o smtpd_sasl_type=dovecot
-o smtpd_sasl_auth_enable=yes
-o smtpd_tls_wrappermode=yes
pickup fifo n - n 60 1 pickup
cleanup unix n - n - 0 cleanup
qmgr fifo n - n 300 1 qmgr
tlsmgr unix - - n 1000? 1 tlsmgr
rewrite unix - - n - - trivial-rewrite
bounce unix - - n - 0 bounce
defer unix - - n - 0 bounce
trace unix - - n - 0 bounce
verify unix - - n - 1 verify
flush unix n - n 1000? 0 flush
proxymap unix - - n - - proxymap
proxywrite unix - - n - 1 proxymap
smtp unix - - n - - smtp
relay unix - - n - - smtp
-o smtp_fallback_relay=
showq unix n - n - - showq
error unix - - n - - error
retry unix - - n - - error
discard unix - - n - - discard
local unix - n n - - local
virtual unix - n n - - virtual
lmtp unix - - n - - lmtp
anvil unix - - n - 1 anvil
scache unix - - n - 1 scache
smtp inet n - n - - smtpd -o content_filter=spamassassin
spamassassin unix - n n - - pipe user=spamfilter
argv=/usr/syno/mailstation/bin/filter.sh -oi -f ${sender} ${recipient}
-- mechanisms on localhost --
250-AUTH LOGIN PLAIN
250-AUTH=LOGIN PLAIN
-- end of saslfinger output --*
*Da scheint alles IO zu sein.
Danach mit -c**
bash-3.2# ./saslfinger -c*
*saslfinger - postfix Cyrus sasl configuration Tue Feb 21 20:55:18
CET 2012*
*version: 0.9.9.1*
*mode: client-side SMTP AUTH*
*-- basics --*
*Postfix: 2.5.5*
*-- smtp is linked to --*
*./saslfinger: line 90: ldd: command not found*
*./saslfinger: line 90: ldd: command not found*
*-- active SMTP AUTH and TLS parameters for smtp --*
*No active SMTP AUTH and TLS parameters for smtp in main.cf!*
*SMTP AUTH can't work!*
*leider sind die verzeichnisse da nicht mehr hartgecodet, folgende links
haben nichts gebracht*
*ln -s /usr/syno/mailstation/etc/main.cf /etc/postfix/sasl/
ln -s /usr/syno/mailstation/etc/main.cf /etc/postfix/
*
*Wo sucht er nach der main.cf ?*
*Dann habe ich schnell mal versucht eine Email zu senden. Fehlanzeige*
*tail -f /var/log/mesages*
*[..] *
*Feb 21 21:39:46 Syno postfix/smtpd[13370]: fatal: no SASL
authentication mechanisms*
p.s. ich formatiere gerne ;)
--
UUGRN e.V. http://www.uugrn.org/
http://mailman.uugrn.org/mailman/listinfo/uugrn
Wiki: https://wiki.uugrn.org/UUGRN:Mailingliste
Archiv: http://lists.uugrn.org/