Git Product home page Git Product logo

Comments (4)

g23guy avatar g23guy commented on July 2, 2024

I'm working on it now. However, there are a lot of *.lmdb or *.db files in /etc/postfix. Do we really want those binary database files? If so, how would support read them?

from supportutils.

g23guy avatar g23guy commented on July 2, 2024

This is what I have so far, please comment.

email_info() {
printlog "Email System..."
test $OPTION_EMAIL -eq 0 && { echolog Excluded; return 1; }
OF=email.txt
addHeaderFile $OF
if rpm_verify $OF postfix; then
log_cmd $OF "systemctl status postfix.service"
log_cmd $OF "postconf -n"
log_cmd $OF "postconf -d"
log_cmd $OF "postqueue -p"
log_cmd $OF "postqueue -j"
log_cmd $OF 'bash -c "comm -23 <(postconf -n) <(postconf -d)"'
FILES="/etc/sysconfig/postfix /etc/postfix/master.cf /etc/postfix/main.cf /etc/postfix/aliases /etc/postfix/openssl_postfix.conf.in"
conf_files $OF $FILES
FILES="/var/log/mail.err /var/log/mail.warn /var/log/mail.info /var/log/mail"
(( $ADD_OPTION_LOGS > 0 )) && log_files $OF 0 $FILES || log_files $OF $VAR_OPTION_LINE_COUNT $FILES
echolog Done
else
echolog Skipped
fi
}

from supportutils.

jirib avatar jirib commented on July 2, 2024

With first customization of postfix we won't get some files. What about this (to get plaintext files)?

find /etc/postfix ! -name '*.rpmnew' -type f -exec sh -c \
  'f=$1; file -bL --mime $f | grep -q "^text/plain" && echo $f' \
  {} {} \;

from supportutils.

g23guy avatar g23guy commented on July 2, 2024

commit 996d427 (HEAD -> master)

from supportutils.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.