Aller au contenu

SamSoul

Membres
  • Compteur de contenus

    226
  • Inscription

  • Dernière visite

Tout ce qui a été posté par SamSoul

  1. SamSoul

    Teamspeak 3

    Bonjour, Normalement pour l'installation ça se passe comme avec Murmur-static. On télécharge le binaire et on l'exécute. Pour le téléchargement c'est ici : http://www.teamspeak...?page=downloads Il faut télécharger "Server amd64 3.0.0-beta29". Sam.
  2. SamSoul

    Ma

    Bonjour, Apr
  3. SamSoul

    Pyload

    Bonjour, Je viens d'installer PyLoad grâce à ce sujet, sans lequel je n'aurais pas connu ce logiciel, et ce tuto : http://forum.qnap.co...p?f=16&t=33515/. Ça marche très bien et c'est relativement facile à installer. Merci pour ce sujet. Sam.
  4. J'ai préparé mon disque sous DiskWipe 1.2 ==> 0 erreurs trouvées. Je vais tout de suite l'installer dans le syno et voir ce que ça donne niveau compatibilité. EDIT : J'ai installé le système sur le nouveau Samsung et ça a l'air compatible. Sam.
  5. Bonjour, Je le suivais depuis un moment celui-là ! Il est aussi en précommande sur materiel.net et magicpc.fr, à 111,49€ et 109€ respectivement. Je vais en commander un aujourd'hui chez magicpc et on verra dans quelques jours si c'est compatible. En tout cas, ça a l'air d'être un très bon disque pour un NAS. Sam. Edit : voilà c'est commandé chez magicpc, plus qu'à attendre que le disque soit disponible.
  6. Bonjour, Quel serveur SMTP utilise-tu ? Celui du syno ou celui d'Orange ? Quand tu dis "Envoi de mail ext
  7. Les Samsung F4 vont bient
  8. Alors depuis la barde a pouss
  9. SamSoul

    Wd Sata 2 Ou 3

    Autant pour moi. Je n'avais pas fait attention
  10. SamSoul

    [R

    C'est pas grave, tu m'as déjà bien aidé comme ça. Il me suffit d'utiliser le petit script dont je me servais pour relancer correctement postfix après les tests et de le faire exécuter dans le script de démarrage de MailStation. Voilà le script en question, c'est pas grand chose mais ça facilite la vie. #!/bin/sh rm -f /usr/syno/mailstation/etc/master.cf cp /usr/syno/mailstation/etc/master.cf.d /usr/syno/mailstation/etc/master.cf /usr/syno/mailstation/sbin/./postfix reload Avec la ligne "smtps*" et tous ces arguments dé-commentée dans master.cf.d. Le seul problème c'est qu'il faut faire toute la configuration dans master.cf.d, tout le reste est ecrasé. Sinon je peux m'amuser à remplacer juste les lignes qu'il faut quand master.cf mais j'améliorerai le script au fur à mesure, quand j'apprendrai comment faire. Merci pour tout. Sam.
  11. SamSoul

    [R

    Que ce soit avec un espace ou avec \s la ligne de master.cf est toujours supprimée au relancement de MailStation. Sam.
  12. SamSoul

    [R

    Voilà le script : J'utilise le firmware 1161 sur mon 710+ avec la version 20100407-018 de MailStation. #!/bin/sh SASLAUTHD=/usr/syno/mailstation/sbin/saslauthd POSTFIX=/usr/syno/mailstation/sbin/postfix DOVECOT=/usr/syno/mailstation/sbin/dovecot SPAMD=/usr/syno/mailstation/bin/spamd PID_SPAMD=/var/run/spamd.pid SPOOL_POSTFIX=/var/spool/postfix MailStationEnabled="/var/packages/MailStation/enabled" MailStationDir="/var/packages/MailStation/target" WebmailDesktop="/usr/syno/synoman/webman/3rdparty/MailStation" WebmailEnabled=`/bin/get_key_value /etc/synoinfo.conf webmail_enabled` SpamfilterEnabled=`/bin/get_key_value /etc/synoinfo.conf spamfilter_enabled` MailStationPostfix=${MailStationDir}/postfix Protocols="" RegenConf() { PostfixConf="/usr/syno/mailstation/etc/main.cf" PostfixMasterCf="/usr/syno/mailstation/etc/master.cf" DovecotConf="/usr/syno/mailstation/etc/dovecot.conf" WebmailConf="${MailStationDir}/roundcubemail/config/main.inc.php" MailStationHostname=`/bin/get_key_value /etc/synoinfo.conf mailstation_hostname` if [ "x$MailStationHostname" = "x" ]; then MailStationHostname="localhost" fi SmtpAuth=`/bin/get_key_value /etc/synoinfo.conf smtpd_sasl_auth_enable` if [ "x$SmtpAuth" != "xyes" ]; then SmtpAuth="no" fi MessageSizeLimit=`/bin/get_key_value /etc/synoinfo.conf message_size_limit` if [ -z "$MessageSizeLimit" ]; then MessageSizeLimit=10240000 elif [ $MessageSizeLimit -eq 2048 ]; then MessageSizeLimit=2147483647 else MessageSizeLimit=`/usr/bin/expr ${MessageSizeLimit} \* 1048576` fi /bin/grep -Ev "^myhostname|^smtpd_sasl_auth_enable|^message_size_limit" ${PostfixConf} > /tmp/tempinfo echo "myhostname = ${MailStationHostname}" >> /tmp/tempinfo echo "smtpd_sasl_auth_enable = ${SmtpAuth}" >> /tmp/tempinfo echo "message_size_limit = ${MessageSizeLimit}" >> /tmp/tempinfo /bin/mv /tmp/tempinfo ${PostfixConf} /bin/grep -Ev "^smtp.*inet.*smtpd|^spamassassin" ${PostfixMasterCf} > ${PostfixMasterCf}.$ if [ "x${SpamfilterEnabled}" = "xyes" ]; then echo "smtp inet n - n - - smtpd -o content_filter=spamassassin" >> ${PostfixMasterCf}.$ echo "spamassassin unix - n n - - pipe user=spamfilter argv=/usr/syno/mailstation/bin/filter.sh -oi -f \${sender} \${recipient}" >> ${PostfixMasterCf}.$ else echo "smtp inet n - n - - smtpd" >> ${PostfixMasterCf}.$ fi mv ${PostfixMasterCf}.$ ${PostfixMasterCf} for key in imap imaps pop3 pop3s; do Enabled=`/bin/get_key_value /etc/synoinfo.conf ${key}_enabled` if [ "x$Enabled" = "xyes" ]; then Protocols="${Protocols} ${key}" fi done if [ "x$Protocols" != "x" ]; then sed "/^protocols/c\\protocols =${Protocols}" ${DovecotConf} > /tmp/tempinfo /bin/mv /tmp/tempinfo ${DovecotConf} fi WebmailSMTP=`/bin/get_key_value /etc/synoinfo.conf webmail_smtp_server` if [ -z "$WebmailSMTP" ]; then SMTP_SERVER="localhost" SMTP_PORT="25" else SMTP_SERVER=`echo ${WebmailSMTP} | cut -d':' -f1` SMTP_PORT=`echo ${WebmailSMTP} | cut -d':' -f2` if [ "${SMTP_PORT}" = "${WebmailSMTP}" ]; then SMTP_PORT="25" fi fi sed "/^\$rcmail_config\['mail_domain'\]/c\\\$rcmail_config['mail_domain'] = '${MailStationHostname}';" ${WebmailConf} > /tmp/tempinfo sed "/^\$rcmail_config\['smtp_server'\]/c\\\$rcmail_config['smtp_server'] = '${SMTP_SERVER}';" /tmp/tempinfo > /tmp/tempinfo.$ sed "/^\$rcmail_config\['smtp_port'\]/c\\\$rcmail_config['smtp_port'] = ${SMTP_PORT};" /tmp/tempinfo.$ > /tmp/tempinfo /bin/mv /tmp/tempinfo ${WebmailConf} } CheckEnv() { if [ -d ${SPOOL_POSTFIX} -a ! -L ${SPOOL_POSTFIX} ]; then if [ -d ${MailStationPostfix} ]; then # after upgrade patch rm -rf ${MailStationPostfix}/public ${MailStationPostfix}/private ${MailStationPostfix}/pid cp -a ${MailStationPostfix}/* ${SPOOL_POSTFIX}/ rm -rf ${MailStationPostfix} mv ${SPOOL_POSTFIX} ${MailStationPostfix} fi fi if [ ! -d ${MailStationPostfix} ]; then rm -rf ${MailStationPostfix} 2>/dev/null cp -a /var.defaults/spool/postfix ${MailStationPostfix} fi rm -rf ${SPOOL_POSTFIX} ln -s ${MailStationPostfix} ${SPOOL_POSTFIX} } StartDaemons() { if [ ! -f "${MailStationEnabled}" ]; then exit 0 fi CheckEnv RegenConf SmtpEnabled=`/bin/get_key_value /etc/synoinfo.conf smtp_enabled` if [ "x$SmtpEnabled" = "xyes" ]; then echo "Starting SASLAuthd..." $SASLAUTHD -a shadow echo "Starting Postfix..." $POSTFIX start if [ "x${SpamfilterEnabled}" = "xyes" ]; then ${SPAMD} -d -r ${PID_SPAMD} fi fi if [ "x$Protocols" != "x" ]; then echo "Starting Dovecot..." $DOVECOT fi rm -f $WebmailDesktop if [ "x$WebmailEnabled" = "xyes" ]; then ln -sf ${MailStationDir}/desktop $WebmailDesktop fi } StopDaemons() { dovecot_base=`$DOVECOT -a|grep '^base_dir: '|sed 's/^base_dir: //'` dovecot_pid=$dovecot_base/master.pid saslauthd_pid=/var/run/saslauthd/saslauthd.pid if [ -f $saslauthd_pid ]; then echo "Stopping SASLAuthd..." kill `cat $saslauthd_pid` fi echo "Stopping Postfix..." $POSTFIX stop kill `cat ${PID_SPAMD}` if [ -f $dovecot_pid ]; then echo "Stopping Dovecot..." kill `cat $dovecot_pid` fi rm -f $WebmailDesktop } case "$1" in start) StartDaemons if [ -n "$SYNOPKG_PKGNAME" -a "x$WebmailEnabled" = "xyes" ]; then /usr/syno/etc/rc.d/S97apache-user.sh restart > /dev/null 2>&1 fi ;; stop) StopDaemons if [ -n "$SYNOPKG_PKGNAME" -a "x$WebmailEnabled" = "xyes" ]; then /usr/syno/etc/rc.d/S97apache-user.sh restart > /dev/null 2>&1 fi ;; restart) StopDaemons sleep 1 StartDaemons ;; status) if [ -f "${MailStationEnabled}" ]; then exit 0 fi exit 1 ;; *) echo "Usage: $0 {start|stop|restart|status}" >&2 exit 1 ;; esac exit 0 Je jette aussi un coup d'œil. EDIT : la seule ligne qui contient master.cf est la ligne 19. PostfixMasterCf="/usr/syno/mailstation/etc/master.cf" Ensuite on retrouve PostfixMaster.Cf plusieurs fois dans le script. /bin/grep -Ev "^smtp.*inet.*smtpd|^spamassassin" ${PostfixMasterCf} > ${PostfixMasterCf}.$ if [ "x${SpamfilterEnabled}" = "xyes" ]; then echo "smtp inet n - n - - smtpd -o content_filter=spamassassin" >> ${PostfixMasterCf}.$ echo "spamassassin unix - n n - - pipe user=spamfilter argv=/usr/syno/mailstation/bin/filter.sh -oi -f \${sender} \${recipient}" >> ${PostfixMasterCf}.$ else echo "smtp inet n - n - - smtpd" >> ${PostfixMasterCf}.$ fi mv ${PostfixMasterCf}.$ ${PostfixMasterCf} Dans la ligne juste au-dessus mv renomme ${PostfixMasterCf}.$ en ${PostfixMasterCf} ou il écrase ${PostfixMasterCf} par ${PostfixMasterCf}.$ ? Je vais chercher à quoi servent les $ et le point. Si ici la fonction de mv est d'écraser ça pourrait venir de là non ? Mais les paramètres de spamassassin devrait-être rentrés à la main. Sam.
  13. SamSoul

    [R

    J'avais pas vu que t'avais édité ton post. "smtpd_sasl_auth_enable=" était déjà sur yes Sam.
  14. SamSoul

    [R

    Merci pour tout. Si je peux t'aider n'hésite pas. Sam.
  15. SamSoul

    [R

    En modifiant ces lignes que ce soit après un reboot ou après un relancement de MailStation la ligne de master.cf est supprimée. Sam.
  16. SamSoul

    [R

    Un énorme merci ! En fait il fallait faire un postfix reload comme indiqué dans master.cf (un postfix stop puis postfix start ferait la même chose je pense) et tout marche. La ligne est prise en compte au relancement de Postfix et elle n'est plus supprimée. Par contre si on relance MailStation elle est supprimée. Il suffira de garder une copie de master.cf et de faire ce qu'il faut à chaque relancement de MailStation. Encore merci. J'aurais du chercher à arrêter et lancer postfix avant de poster sur le forum ... Sam.
  17. SamSoul

    [R

    Encore merci. J'ai d
  18. SamSoul

    [R

    Merci pour ta réponse. C'est bien ce que je faisais, pas d'espace devant le smtps et un espace devant le -o. Mais quand je relance MailStation la ligne logique "smtps ..." disparait donc la ligne suivante, avec un espace devant, se retrouve seule alors que normalement elle devrait continuer la ligne "smtps ...". J'ai déjà essayé de tout mettre sur une même ligne et là c'est toute la ligne qui disparait "smtps ..." + "-o...". Sam.
  19. Bonjour, J'essaye depuis quelques temps de param
×
×
  • Créer...

Information importante

Nous avons placé des cookies sur votre appareil pour aider à améliorer ce site. Vous pouvez choisir d’ajuster vos paramètres de cookie, sinon nous supposerons que vous êtes d’accord pour continuer.