Tag Info

New answers tagged

1

Is impossible, but most web mail services (yahoo, gmail, etc) check the file for virus before downloading, also you can use a third tools to check if the file is dangerous or not, for example you can forward the mail to scan@virustotal.com


1

I'd recommend using URL syntax notation for the IMAP folder as explained in the manual. This should work for the mailbox name: imaps://user@domain.lan:password@mail.domain.lan From the manual: This has the advantage that multiple IMAP, POP3 or SMTP servers may be specified (which isn't possible using, for example, $imap_user). The username may ...


1

You can use sendmail directly to send the email. Using custom shell script would make it "cleaner". make crontab execute custom script @reboot .../reboot-notify make the script use sendmail directly simple script (e.g. you can make it check that IP address has changed) #!/bin/sh HOSTNAME=`hostname` /usr/sbin/sendmail -i example@example.com ...


1

The error simply means that the mail package is not installed or the mail script is not present on the system. To resolve the issue, install the mailx or mailutils package depending on your distro. As you have tagged CentOS in the question, so you need to install the mailx package. $ sudo yum install mailx Mailx is an enhanced mail command, which ...


1

On Debian/Ubuntu you need bsd-mailx package installed to send emails. Where did you added the above command? There are 3 possible reasons the mails aren't send: this command isn't executed at all (add it to /etc/rc.local to make sure it will be executed) bsd-mailx package isn't installed you tried to install some MTA which broke bsd-mailx configuration


0

I have a sheevaplug with Debian. I commented the reported line inserting # and solved the problem. File to edit in debian: /etc/pam.d/sshd Line to comment in file: session optional pam_mail.so standard noenv # [1]


0

I've re-installed it using apt-get install rsyslog and logs seem to be filling up again, odd that it seems to have gone missing in the first place, it's clearly been on the system before


0

Open the terminal and execute the command # sudo add-apt-repository ppa:adiscon/v8-stable Now install rsyslog # sudo apt-get install rsyslog to check rsyslog version, # rsyslogd -v rsyslogd 7.4.4, compiled with: FEATURE_REGEXP: Yes FEATURE_LARGEFILE: No GSSAPI Kerberos 5 support: Yes FEATURE_DEBUG (debug ...


1

Imap-CLI should do the trick. It's unclear if it supports Google's IMAP extensions (X-GW-RAW), though.


4

One way to do it would be to install mutt. With mutt you can delete messages matching various criteria, f.i. messages from the cron daemon. It might be a good idea to copy a representative sample of messages in some other folder and practice the operation there before running the cleanup against your inbox. If you're doing this over IMAP you might also ...


1

There is a "Send Later" add-on for Thunderbird: True "Send Later" functionality to schedule the time for sending an email. I'm afraid this functionality isn't possible with Evolution. Using the command line, you can use a combination of the at command along with some mta such as ssmtp, mailutils or postfix. Example with mailutils: echo "Test" | mail ...


1

Could the query just be returning nothing? You could add some extra checks: sqlplus -s << $query > ${query_log} # check if the sqlplus command actually worked if [[ $? -ne 0 ]] ; then echo "error: Query failed!" >&2 # or mailx -s ... (cron will email stdout/err anyway) exit 1 fi # check the query is not empty if [[ -s ${query_log} ...


2

Those environment variables such as ${ORACLE_HOME} are perhaps in your bash profile. This does not get read via cron automatically. Insert the line below after the #!/bin/bash. source /home/user/.bash_profile


1

Yes, vacation does use Berkeley DB for the purpose you described. Indeed, you could run into problems if you try and access the same Berkeley DB files using different versions of the client libraries. The on-disk format does change from time to time and upgrading is normally handled transparently by the client application (or manually, using the db_upgrade ...


0

Unfortunately it's not possible to have multiple rules fire for a single header. Wietse Venema's confirmation: As documented, only one rule can fire per line. http://www.postfix.org/header_checks.5.html As documented, use an external content filter for complex actions. http://www.postfix.org/BUILTIN_FILTER_README.html#limitations Aside: I'm ...


1

Because you (root on the local system) got a mail as it showed. It's delivered (appended to a file /var/mail/root) by local mailer daemon (sendmail, postfix, etc), probably notifying you of mailer configuration error, or your last mail got bounced (failed to deliver it to the finail recipient test@qq.com). You can read each mail interactively by running ...


0

Giving all due credit to MelBuslan's excellent scriptlet, let me tweak it to address the request for one single e-mail: #!/bin/bash email_address=me@my.domain.com if test -n "$(find /my/directory/name -maxdepth 1 -name 'core*' -print -quit)" ; then for file in $(ls /my/directory/name/core*) do newname=$(echo ${file}|sed -e ...


0

#!/bin/bash email_address=me@my.domain.com for file in $(ls /my/directory/name/core*) do newname=$(echo ${file}|sed -e "1,1s/core/c.o.r.e/") mv ${file} ${newname} echo "File Renamed..."|mail -s "File ${file} renamed to ${newname} ${email_address} done This should do...


0

Here is a procmail solution: # extract date from mail :0 TMPDATE=| formail -x Date # get local date LOCALDATE=`date --rfc-2822 -d "$TMPDATE"` # add it new header to the mail :0 f | formail -I "LocalDate: $LOCALDATE" And display LocalDate: in muttrc: unignore localdate


1

The LASTFOLDER idea is completely fine; you just need to make sure you don't end up signaling failure to the invoking process. You are not showing your code, but something like the following should work fine. :0 * LASTFOLDER ?? . /dev/null The variable ?? regex syntax is Procmail's built-in facility for examining a variable. The single dot will match ...


2

You can do something like this for all rules that sort messages to list folders: :0 * ^List-Id:... { :0 c: somefolder :0 fw | formail -a X-Chad-Loop: Chad was here } Then just before the end: :0 * ^X-Chad-Loop:\ Chad\ was\ here { :0 /dev/null HOST } I think this will also log the delivery to /dev/null. If you don't like ...


1

Most likely your IP is spam-blacklisted, some service providers are notorious for having their subnets blacklisted. To fix this you need to request removal of any IP ranges you're concern from any blacklists they may be in, they will do so after some verifications. Also, you need to authenticate your emails using different technologies like DomainKeys ...


1

The error is pretty much self-explanatory. You need to configure your mailserver to be able to send mail outside your local domain.


2

Naive Solution I will assume that your logs have file names which match the glob /xx/xx/logs/xx/*.log and that you want to send mail to somebody@host.com newest=$(ls -rt /xx/xx/logs/xx/*.log | tail -n 1) echo 'An error occured' | mutt somebody@host.com -s "Logs" -a "$newest" This approach works if the files have well-behaved names. In general, though, ...



Top 50 recent answers are included