date
int64
1,220B
1,719B
question_description
stringlengths
28
29.9k
accepted_answer
stringlengths
12
26.4k
question_title
stringlengths
14
159
1,336,420,297,000
I'm using a third party mail server to receive/send emails for the domains hosted on the VPS. They provide MX, TXT, CNAME records (without any IP address) to add in the DNS zone file for each domain, which I did successfully and emails are being sent by the PHP script using SMTP authentication. Thus, I have disabled a...
A similiar question has been asked here. Stricly speaking, no, you need some kind of MTA / software running to forward email. sSMTP sounds like the best choice because it's very leightweight / meant for forwaring only. archlinux wiki has some additional details on configuring it.
Send System Emails without MTA on VPS
1,336,420,297,000
I have a RHEL6 system and I want to verify if the system is vulnerable to phpmailer remote code execution exploit. I did not setup the server. How can I figure if the server is vulnerable? I tried rpm -qa | grep php, yum list | grep php and it looks like there is no phpmailer installed.
The first step I would do is to find all phpmailer classes residing in your server and determine their versions, and see if those individual versions are affected by one or more vulnerability(ies). The class name of phpmailer is class.phpmailer.php https://github.com/PHPMailer/PHPMailer So you would search on your s...
PHPmailer remote execution vulnerability check
1,336,420,297,000
I am trying to sort incoming mails from a ticket system into maildirs containing the ticket number. The sender is: [email protected] The Subject contains always: RequestID: <numbers> So I tried with the following ruleset: match "^From:.*ticketsys@test\.de" in headers { match "^Subject:.*RequestID:[ \t]...
It seems that fdm does not do MIME-Header decoding, so when a mail header has been encoded, eg as =?iso-8859-1?Q?..., you will have to explicitly take this into account in your regexp. Note that fdm will join multi-line headers into one line during the regexp phase to help you. So, if you can guarantee that the sende...
fdm - nested actions
1,336,420,297,000
I am currently using the following command to send emails from my Ubuntu server, which I adapted from this question's answer: https://unix.stackexchange.com/a/90881/166614 printf "subject: the subject\n\nMessage body"| (cat - && uuencode "$attach" $(basename "$attach")) | ssmtp <email> My only problem so far is that ...
I ultimately decided to use mpack to accomplish this task. While this doesn't answer the exact question I posed, I think mpack provides a simple way of sending emails without installing email clients with functionality that you might not need. That said, if anyone can answer the exact question, they are welcome to pos...
SSMTP: How to send email with both a body and attachment
1,336,420,297,000
I am interested to get email notifications from my server to my Gmail account - the same notifications that the server gets in the /var/mail/root - either by forwarding the messages, or or directly emailing the notifications there (which one is better for security?) The Gmail account is set to have two-step-authentica...
I was able to get it running by creating an app specific password (as noted in the question). Then followed the tutorial on VULTR. But I was getting an error: Exim configuration error in line 22 of/var/lib/exim4/config.autogenerated.tmp: malformed macro definition I had to apt-get remove --purge exim4-config to get ...
How to configure a two-factor-enabled Gmail account to work as sendmail on a Debian Jessie?
1,336,420,297,000
We have a typical account domain with NFS home directories, accessible by the mail server as well as various user workstations. Do the versions of the vacation package installed on the mail server and the workstations need to match? My understanding is that the vacation program uses a Berkeley DB to keep track of whic...
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 applica...
Can the vacation e-mail auto-responder cope with Berkeley DB version skew?
1,336,420,297,000
I'm considering using Alpine on OS X (Yosemite). I have most things configured, but I want to be able to use a GUI text editor (specifically OS X's TextEdit) as the Alpine alternative editor, so that I can use the system keyboard shortcuts, spelling checker, mouse, etc. (I'm aware that I could use an editor like emacs...
If Alpine indeed works with step files, then, according to man open, you could try: open -W -n -e The -W option ensures open waits until the app is closed to return. The -n option is used to run a new instance of your app, even if it’s already running (this way, if you’re already running TextEdit, you don’t have to ...
How to configure Alpine to use an alternate editor on Mac OS X?
1,336,420,297,000
What specific syntax do I use to get mutt to send an email through port 587 on a CentOS 7 server? For example, the sender is [email protected], the recipient is [email protected], the subject is This is the subject, and the message body is This is the message body..
In your ~/.muttrc or ~/.mutt/muttrc, files which may be or may not be reside in your home directory, you can add the following lines: set smtp_url="smtp://[email protected]:587/" set smtp_pass="insertyourpasswordhere" This only works if the smtp option is enabled during compilation. If neither of these files are in y...
use mutt to send email through specific port on CentOS 7
1,336,420,297,000
When I send an eMail with Kontact (KDEPIM), my Message-ID headers look like this: Message-ID: <1548233.Ax4hfq5P2Q@pbecbengr-rivy-znaqngrq-ba.tglase.lan.tarent.de> In contrast, my regular MUA uses: Message-ID: <[email protected]> So, why does KMail not use just the FQDN of my host, and why does it use the string “pbe...
Args. Apparently, this has been written into my ~/.kde/share/config/kmail2rc under [Composer] ⇒ myMessageIdSuffix, which I could then backtrace to the “Headers” tab of the “Composer” group of “Settings → Co̲nfigure KMail…”. Now, the only remaining question is, who has set it there, why, and how. But I guess this answe...
Why does KDEPIM add “pbecbengr-rivy-znaqngrq-ba” to the domain part of outgoing Message-ID headers?
1,336,420,297,000
I have an email address that I can access via POP3, but which I rarely use. Though it receives quite a bit of email. I cannot use a forwarding feature for this account. Yet I want to forward incoming mail to my iCloud account. I do have a dedicated root server running somewhere, which for example could run fetchmail ...
I got it working with fetch mail and msmtp. My target was iCloud, so I will leave in the MX of iCloud. First the .fetchmailrc: poll pop.gmx.net with proto POP3 user "user@pop-server" there with password "secretpassword" mda "/usr/bin/msmtp -- [email protected]" options no keep ssl sslcertck sslcertpath /etc/ssl/certs ...
How can I forward emails from a POP3 account to another SMTP or IMAP account?
1,336,420,297,000
I have fetchmail running perfectly to fetch emails from Gmail, and then I am using procmail to store them in $HOME/Mail/Inbox. In my .procmailrc, I added this code which pipes to munpack to extract the attachment which can be a PDF or CSV file: ATTACH=`echo $HOME/Mail/Inbox` :0 c * ^To:.*[email protected] * ^From:.*[...
I found the problem! Munpack will work just in case you have one mail in your mailbox text file. If you have more than that munpack will not work!
Problem extracting email attachment using munpack
1,336,420,297,000
I have a debian 6.0 server with courier/courier-mta set up and some local domains. Now I want to create some forwards for some email address that should go directly to external addresses as there are no local users for those addresses. Eg. I have an address "[email protected]" (its an example, I use a different addres...
You can do the following, but this requires a mailbox, create a dummy mailbox (/home/vmail/domains/mydomain/redir), and create a dot-courier file (/home/vmail/domains/mydomain/redir/.courier) with the following content: [email protected] [email protected] And that's it, when you send a mail to [email protected], it ...
Configure courier to forward certain mails to external addresses
1,336,420,297,000
I'm running postfix on Debian, receiving email for my.com, and I would like all incoming emails from sender.com to be delivered to [email protected], regardless of the original recipient. Emails from other domains still need to go to the original recipient. Is this possible/easy to set up?
I found the answer here. You can use sender-dependant aliases like that: main.cf: smtpd_sender_restrictions = check_sender_access hash:/etc/postfix/sender_access sender_access: sender.com redirect [email protected]
Sender based redirection on Postfix
1,336,420,297,000
I'm running a postfix/dovecot mail server and everything works quite well. What I want to do now is forward all mails with a recipient that does not have an entry in the local recipient table, to another, existing user. I've tried google'ing around, but I haven't found anything...it seems like this is an uncommon thin...
Ok, using simple aliases works well enough for me. In case someone else needs a hint on this, I used this link to set up mail redirection: http://www.cyberciti.biz/tips/how-to-redirect-one-users-mail-to-another-user-with-postfix.html
Postfix: Forward/Reroute mails with unknown recipients
1,336,420,297,000
I have Postfix suite installed locally on Ubuntu 10.10. I can send/receive mail to my local address, e.g. [email protected]. I'm given credentials to a remote mail server mailbox, e.g. [email protected]. What command line incantation on my local box would connect me to SMTP server at remote.com providing username an...
Actually, Postfix turned out to be irrelevant to my problem. Using it would be an overkill for this task: it requires per-host configuration, where per-user would do. I figured out msmtp is well enough for my task.
How to send mail from a remote SMTP host?
1,600,929,113,000
I am running mutt as my email client, with abook to manage addresses. I understand that to send a query to abook I can use Q, with the relevant part of my muttrc being: set query_command = "abook --mutt-query '%s'" But this requires me to type some query, which will shorten my address list. Often I want to browse th...
You can use "" as an argument. Press Q in mutt and then just enter "" and press enter. You can also test it in a command line ( I added 2 public addresses for a test): $ abook --mutt-query "" [email protected] [email protected] [email protected] Gmane Autoauthorizer Alternatively you can use aliases. Set this in y...
Mutt abook empty query
1,600,929,113,000
When I run "postsuper -d ALL" all messages from mailq are deleted. For a few seconds I am able to send emails from terminal just fine. However, even if I just stand still and do nothing after clearing the mailq, after about 20 seconds some new entries starts to show up in the queue, which prevents any other email mess...
I believe the issue was fixed by fixing permissions on the folder: /var/lib/imap/socket/lmtp There was also a small difference between the server's hostname and the hostname actually defined on the postfix config file. After those two things were fixed, the postfix was restarted.
CentOS: postqueue -p show a message that keeps coming back to queue
1,600,929,113,000
I have configured dovecot to use Client certificate authentication. I have used CA.pl (openssl wrapper) to create CA cert and sign client and server certs with that.(no certificate chain, CA cert is trusted in client) I have set the certificate as CA certificate in dovecot for client auth. Dovecot correctly asks IceDo...
I found the answer so I thought I should post it here too. (precisely @behrad-eslamifar did :) you should append the CRL to the CA certificate given to dovecot EVEN IF YOU HAVE SET ssl_require_crl = no like this way : openssl ca -gencrl -out crlfile cat crlfile >> cacert.pem service dovecot restart thanks everyone fo...
Dovecot rejecting client certificate
1,600,929,113,000
I have a dedicated server with a few VPSs for my clients. I'd like to immediately stop/suspend any VPS that send out mass emails. I'm aware of a way to monitor SMTP connections on port 25 But this method doesn't work if the VPSs are configured to use another port to send out email. I'm not sure if the method works if ...
For OpenVZ and LXC it is much easier task than for KVM, for example. You can use some already written tools like this and this (FastVPS specializes on OpenVZ VPSes). Also, having access to guest system, you can not only monitor traffic from outside, but you also can monitor smtp queue from inside. And this can be much...
Prevent outgoing email spam from client's VPS
1,600,929,113,000
Short description, what i'm searching for: I want to have a detached tmux session automatically started as a systemd user service. Inside that, offlineimap should start and decrypt my login credentials. The graphical variant of pinentry should ask me for the password for decrypting my login credentials, when I attach ...
It seems that what I'm searched for is currently not possible. Initially I misread the description of graphical.target - I thought this target would be set after the login has happened. Instead, it just sets up the Login Screen (e.g. lightdm). And for "logged into graphical desktop" does currently no target exist. The...
Systemd Service for Offlineimap + gpg encrypted PW's inside tmux works manually after system start but not autmoatically
1,600,929,113,000
When using mutt I don't want all the messages to be cached, which could take up a lot of disk space. But if I purge an email, it also gets deleted on the server side, which is undesired because I may need to reference it in future. Is it possible to automatically clean up cached old messages when it's >100MB, while ke...
AFAIK you cannot do that directly in neomutt. But in GMail and maybe other e-mail providers you can set limit for number of messages beeing fetched from folder/label over IMAP. GMail > Settings > Forwarding and POP/IMAP (IMAP access section) under Folder size limits Limit IMAP folders to contain no more than this many...
Can mutt delete message locally but retain it on server?
1,600,929,113,000
I have Kubuntu 14.04 and am mandated by my employer to use Outlook 2013 for company email for "security reasons". I currently solve this problem by having a virtual Windows 7. This seems like a bit of overkill. I have never used wine but in principle it would be an ideal solution. Can somebody please point me to a gui...
According to WineHQ the application will install but it's very likely that it won't run at all. Your current solution (having Windows in a VM) seems like the more seamless and effective solution to the problem. Unless something change, I recommend using a Virtual Machine instead.
Outlook on Kubuntu 14.0.4 with Wine
1,396,426,859,000
My organization is running an exchange server 2007 with MAPI disabled for security reasons. How do I connect with evolution? When I connect using the Microsoft Exchange option I get the error The Exchange server is not compatible with Exchange Connector. The server is running Exchange 5.5. Exchange Connector ...
As far as I know, this is not possible, at least if you want a reasonably stable solution. Which would, at this point, also exclude the Exchange MAPI option, even if it were available.
Evolution and Exchange Server 2007 without MAPI
1,396,426,859,000
I am doing the following: x="Hello to the world of tomorrow\n <pre>"; x="${x}$(tail -n 50 log/logfile.log)" x="${x}</pre>"; echo -e $x | ./perlscript The Perl script: #!perl # perlscript open(MAIL, "sendmail -t") print MAIL "EMAIL HEADERS\n\n" print MAIL <STDIN> close(MAIL); When I receive the email, the log file do...
double quotes are missing in the command echo : echo -e "$x" | ./perlscript
$(tail) into variable removing \n
1,396,426,859,000
Let's say I send an email, containing a link to my website, to someone that I really hope he'll visit it (fingers-crossed style): http://www.example.com/?utm_source=email392 or http://www.example.com/somefile.pdf?utm_source=email392 How to make Linux trigger an action (such as sending an automated email to myself) w...
Live log monitoring using bash process substitution: #!/bin/bash while IFS='$\n' read -r line; do # action here, log line in $line done < <(tail -n 0 -f /var/log/apache2/other_vhosts_access.log | \ grep '/somefile.pdf?utm_source=email392') Process substitution feeds the read loop with the output from t...
Trigger an action when an URL has been visited
1,396,426,859,000
I remember messing around with crontab and setting up email capabilities on a server many months back, and now all of a sudden I'm getting the following email: EMAIL HEADER: from: root <[email protected]> to: root date: Thu, Dec 5, 2013 at 6:48 AM subject: Cron <root@server-ip> test -x /usr/sbin/anacron || ...
This is a cron job that updates the indexes for mlocate, which is used when you run locate on your system to find files. This index allows the program to quickly find files without traversing the filesystem (which is much more expensive, because it's not optimised for that use case). For some reason, the lock file tha...
Mysterious automated emails
1,396,426,859,000
I know that I can create a GPG keypair from the CentOS 7 terminal by typing gpg --gen-key and following the resulting steps, but how can I make sure that the resulting public key is self-signed? And how can I send the resulting key via email to a remote computer? I know that I can send an email with an attachment us...
First, find the public key you want to export: gpg --list-public-keys Look at the line marked 'pub'; it displays your public key type and number. For instance: pub 1024D/5000280F 2009-07-10 Use the number to do your export: gpg --armor --export 5000280F > klaatu_pubkey.asc Check to make sure it worked: cat kla...
creating and sending a self-signed public key using GnuPG in CentOS 7
1,396,426,859,000
Is 'marc' some person in the Linux/Unix community? In /etc/aliases on a default centos install, the bottom line reads: # Person who should get root's email # root: marc Or is it just a random name?
This is an example, but it wasn’t picked out of thin air: marc is Marc Ewing, who created Red Hat Linux and wrote the initial version of the /etc/aliases file which ends up in CentOS. The line is commented out, so it doesn’t have any effect; if you want to redirect email sent to root, it’s up to you to choose whatever...
Who is marc, the default receiver of root mail in /etc/aliases?
1,396,426,859,000
I am using offlineimap to fetch mail from several IMAP servers. This used to work but today offlineimap has been unable to fetch mail, producing the following errors: *** Processing account example Establishing connection to imap.gmail.com:993 ERROR: Unknown SSL protocol connecting to host 'imap.gmail.com' for repo...
The problem started when I installed Homebrew's version of python rather than the Apple version. The error was resolved by running brew uninstall python I discovered this was the solution by reading about a similar error produced by another Python program on OS X.
Offlineimap unknown SSL protocol error
1,396,426,859,000
I would like to send several times the same email to different recipients. I cannot put all recipients in CC or BCC because 1. one recipient should not see emails of the others (so not CC) and 2. I have to send this email at different time according to the recipient (so not BCC). The solution seems to be "bouncing" th...
resend-message (Esc-e) lets you create and edit a new message based on a previous one. Just change the recipient and send. If several is tens or hundreds, then make a shell/perl/whatever script to call mutt for each recipient in a database.
How to modify recipient when bouncing email in Mutt?
1,396,426,859,000
I am trying to send email via my web server using PHP but for some reason the email never arrives. According to PHP the email was sucessfully sent but I never receive the email. I know its not a spam problem as the web server used to be able to successfully send email until I reinstalled it last week. It has been inst...
PHP is probably trying to talk to a local SMTP server, that is, one running on the same machine as the web server. So, have you set one up? There are many to choose from. The most popular are Sendmail, Exim, Postfix, and Qmail. Try sending email using the primitive mailx client. If it can't send mail outside the machi...
Email sent from web server using PHP does not arrive
1,396,426,859,000
As we know that MAILTO is used for receiving any mail related to the Cron job. In my case I have three commands to execute, do I need to add MAILTO three times even if the receiver mail id is the same for each of the three commands? My jobs are running on a CentOS machine. [email protected] ./first-Command [email pro...
The MAILTO variable, if set, is retrieved from the crontab file, so if it exists and is not "" then it will be used for all subsequent jobs in that file, just like if you had created a shell script like your second example. Therefore, setting it at the top of the crontab file is enough, just like you could change the ...
Do we have to rewrite the MAILTO after each cron command?
1,396,426,859,000
Unable to send out emails from my Linux Host. Below is the command I try: echo "This is the message body and contains the message" | sudo mailx -v [email protected] -s "This is the subject" or mail -s "Test Subject" [email protected] < /home/system/mailbody.txt Output: Mail Delivery Status Report will be mailed to...
In an update you showed your /var/log/mail.log contained this: Feb 8 15:29:43 Efendibey_Live postfix/qmgr[1193]: E4F5F16A9: from=<root@efendibey_live.localdomain>, size=467, nrcpt=1 (queue active) Feb 8 15:29:45 Efendibey_Live postfix/smtp[18225]: E4F5F16A9: to=<[email protected]>, relay=mx.zoho.com...
Unable to send out emails from my Linux Host
1,396,426,859,000
I'd like to connect to our mail server via POP3, look for a certain pass phrase in the subject and if found then run a script. How can I achieve this with BASH other than awkwardly scripting Telnet? Thanks!
The typical tool to query POP3 servers from the commandline is fetchmail which you can instruct to leave the original messages on the mail server (the 'keep' option or nokeep to empty the mailbox after downloading the messages) and then procmail is the typical mail filter, which can be used to trigger your script. A ...
Querying a remote POP3 Mail server using BASH
1,396,426,859,000
I have a Perl script that uses NET::IMAPClient and MIME::Parser which simply reads new emails from an IMAP server and saves any attachments to disk. My question is: what is the best way to run this script as soon as there's new email? I can use cron to periodically run the script, I could check every few seconds even...
In general you keep checking for e-mail unless, as mentioned by @JoelDavis, the server can be extended with some push command. Further if your e-mail server supports it one can make use of the IDLE extension for IMAP4: https://www.rfc-editor.org/rfc/rfc2177 http://en.wikipedia.org/wiki/IMAP_IDLE The IMAPClient has n...
Receiving emails over IMAP and parsing with a script with minimal delay
1,396,426,859,000
I am struggling with configuring two mails for two different users in Ubuntu. Like if I login with User1 then whenever I use the command mail, it should send mail from [email protected]. And when User2 logins with its credentials then it should send mail from [email protected]. Currently I've changed my /etc/ssmtp/ssm...
If you're using the mail command (aka mailx) you should be able to add this to the ~/.mailrc file for each user: set from="[email protected]" mutt follows the same syntax except ~/.muttrc is the file you edit.
How can I configure two mails for two different users in Ubuntu
1,396,426,859,000
I have been using a perl script to archive mail found here The script uses ctime to process and decide which month sub folder to place mail. In most cases this is fine since the ctime = mtime and therefore the mails are archived by the month that they were sent or received. But I have found occasions when it is not go...
I work with procmail and Dovecot, but the maildir structure is fairly standardized. If you are trying to archive by date you may want to verify the Date from the headers. Reading from the top of the headers the first date you find should be very accurate. My messages have three fields which can be used Delivery-Date...
Is it better to archive/move mail based on mtime or ctime?
1,396,426,859,000
I'm looking for a simple smtp daemon, that supports aliases (due to issues with daemons, that refuse to send emails to anyone else than root). If you don't know msmtp, then basically, I just want to configure an external SMTP that will handle all mail delivery.
msmtp seems to understand aliases, see http://msmtp.sourceforge.net/doc/msmtp.html#aliases . It seems just a matter of correct configuration.
msmtp alternative that understands /etc/aliases
1,396,426,859,000
I am trying to set up postfix with dovecot. I can telnet to localhost 25 and send a message to accounts on the server. However, when I try to telnet to port 25 on this server from another server I get "421 Cannot connect to SMTP server" ... "connect error 10060". The firewall is open right now: Chain INPUT (policy ACC...
The problem was that my MX records were not set up properly on my domain. The port 25 thing was a red herring. Godaddy just forbids servers from directly connecting to port 25 on other Godaddy servers.
postfix doesn't respond on 25 from external server
1,396,426,859,000
I am using a university server that runs linux (Ubuntu 16.04). I am trying to use this server to send email messages (using python, code below), but apparently outgoing SMTP connections are blocked (I say this because the code works on my mac, it only hangs on the server). Is there any way to unblock them? I asked my...
As I mention in my comment there are really several questions being asked. I will talk here a little bit about the port 25 issue. Port 25 is the standard unencrypted SMTP port and it is quite common for system administrators to configure an organization's firewall to block outbound traffic on that port. This is done f...
How to enable SMTP forwarding?
1,396,426,859,000
I'm trying to diagnose a problem with certain email addresses possibly being blocked on my server. I'm running PHP 5.3 on CentOS 5.7. The php.ini file lists a sendmail_path of /usr/sbin/sendmail -t -i, which when run in CLI hangs there. I've noticed that qmail is installed on my server, too, but I don't know if PHP is...
TL;DR: PHP doesn't care about what MTA you're using. Longer explanation: this goes way back almost as far as the POSIX standards themselves, but every properly written MTA will provide a binary named sendmail that will behave exactly as the "official" sendmail program would be expected to behave. As a result, every un...
What Mail Transfer Agents is PHP using?
1,396,426,859,000
I'm using fetchmail to download email, and using procmail for delivery as the mda. I'd like them to be delivered for use with mh, but procmail seems to deliver them in a manner that mh doesn't understand: I get subdirectories new/ cur/ and tmp/ with files in new/ named something like 1484079635.67044_0.HOSTNAME If I...
Your DEFAULT=inbox/ says that mail should be delivered to a Maildir mailbox (with subdirectories cur, new and tmp). This mailbox is located in $HOME/Mail/. according to the MAILDIR variable. To deliver to an MH mailbox instead, you should set DEFAULT to inbox/. (note the dot at the end). MAILDIR can be set to $HOME/Ma...
How do you use procmail mda to deliver files to be read by mh?
1,396,426,859,000
I am using a Debian Jessie server and have setup exim4 to send me emails instead of postfix or sendmail. Thats when I started getting loads of emails as follows: First: Title: * SECURITY information for vultr.guest * Body: vultr.guest: Dec 7 12:13:29 : root : unable to resolve host vultr.guest Second: Title: Cro...
It seems to me that VULTR's tutorial is not correct. When you configure exim4 by dpkg-reconfigure exim4-config, they tell you to choose mail sent by smarthost; no local mail, and configure it as follows: System mail name: YOUR_HOSTNAME IP-addresses to listen on for incoming SMTP connections: 127.0.0.1 ; ::1 Other des...
Delivery Status Notification (Delay) emails from my server?
1,396,426,859,000
In Heirloom mailx, one can specify "from address" (-r) and "reply-to address" (-R). What is the difference between the two?
From RFC 2822 para 3.6.2: When the "Reply-To:" field is present, it indicates the mailbox(es) to which the author of the message suggests that replies be sent. In the absence of the "Reply-To:" field, replies SHOULD by default be sent to the mailbox(es) specified in the "From:" field unless otherwise specifi...
Difference between Reply-To address and From address in an email
1,396,426,859,000
I'm trying to send a log file every 24 hours or so via email. Currently I am using mutt for this. You can call mutt like this: mutt -s "Log" -a file_attachment [email protected] I know I can list the most recently created files using find and mtime but I want to be able to define a bash function that will find the m...
With zsh: mutt -s "Log" -a /path/to/*.log(.om[1]) [email protected] That uses zsh glob qualifiers. While other shell globs can only generate filenames based on their name, in zsh, you can use those qualifiers ((.om[1]) above), to select based on file attributes (type, size, times, permissions...) or other criteria of...
Sending most recently created file via Email
1,396,426,859,000
I successfully installed and configured Exim4 on my Debian/Squeeze machine, so now I am able to send outgoing emails with a command like this: exim4 -v [email protected] From: [email protected] To: [email protected] Subject: Test email Body of the email . Is there a similar command to RETRIEVE emails into the Maildi...
While it is quite viable to use exim to send emails, your question reads like you are using the wrong tools for what ever your overall goal is. exim cannot retrieve emails from another server, because exim is a mail transfer agent, cf. RFC 821. Accessing a users mailbox and retrieving email (what you want to do) is a ...
How do I retrieve email with Exim4?
1,396,426,859,000
The content of my signature file is John Doe but neomutt appends it to mails as -- John Doe How can I get rid of the --?
This is controlled by the sig_dashes config option so simply add unset sig_dashes to your neomuttrc config file, see neomutt documentation for more information.
Remove -- from signature in neomutt
1,605,590,299,000
Email lists keep their emails in archives. Sometimes I want to search through those archive but I don't know how to do it. Of course I can open it one by one (actually month by month) and search the content, but it's nonsense to do that. This afternoon I read the README file for u-boot. IT says : Where to get help: =...
Some list archives have integrated search functions, the second one you mentioned has it: https://marc.info/?l=u-boot&w=2&r=1&s=lan9220&q=b but the easiest way would IMHO be google: "lan9220" site:https://lists.denx.de/pipermail/u-boot/ You could also download the compressed archives for every month, these contain jus...
how to search through a public email archive?
1,605,590,299,000
My mail needs are simple. I only want to send system notifications via a non-SMTP hook. (The hook sends out to a mailgun account over https). I imagine all linux programs (e.g. cron) calling something like "(send)mail [options] content". Or are they calling SMTP service directly? If they are calling "(send)mail [op...
Yes. Good old sendmail was one of the early mailers and the behavior and options it provided became ingrained into the various *nix and *nix-like systems (expensive Unix, the BSDs, Linux, the Hurd, etc) for both internal-to-system messages (cron output, user to user, root to user, etc) and for network based mail. It ...
What is the standard interface used by linux system programs to send notification mail?
1,605,590,299,000
I am working with a locked-down RHEL box. The goal is to send an email with a file attached. The only mail service available is sendmail (cannnot use sendemail, mail, mailx, mutt, etc.) In addition, the uuencode command cannot be found and I cannot install sharutils. I have verified that sendmail works with the simpl...
The work-around was to use openssl base64 encoding like so: ( echo "to: [email protected]" echo "subject: Message from the server" echo "mime-version: 1.0" echo "content-type: multipart/related; boundary=messageBoundary" echo echo "--messageBoundary" echo "content-type: text/plain" echo echo "Please fi...
How can I add an attachment with Sendmail (limited options)?
1,605,590,299,000
I have a standard Debian running with IP 203.0.113.2, with Postfix installed (default config). I tried sending an email, with a Gmail address, to [email protected]. When doing $ mail I don't see this email. How to make my server accept emails sent to [email protected] from outside? PS: I had a response from Gmail: B...
The Bad recipient address syntax response from Gmail indicates that the problem is not with your postfix server. Rather, Gmail expects a domain name and does not accept an IP address. The simplest solution is probably to set up a domain name, configure the MX record on the DNS to point to the Postfix server, and then ...
Email not arriving to my server, with address root@<IP>
1,605,590,299,000
I have the following query in shell script: mysql -e "use hive; select DISTINCT TAB.DB_NAME, TAB.TABLE_NAME from TABLE_PARAMS INNER JOIN TAB ON TABLE_PARAMS.TBL_ID = TAB.TBL_ID where PARAM_KEY = 'numRows'" -u root -p$Pass If I run this on the command line, the formatting is great. However when I email the results ...
Use --table or -t with the mysql client: mysql -t -D hive -u root -p"$Pass" \ -e "SELECT DISTINCT TAB.DB_NAME, TAB.TABLE_NAME FROM TABLE_PARAMS INNER JOIN TAB ON TABLE_PARAMS.TBL_ID = TAB.TBL_ID WHERE PARAM_KEY = 'numRows'" | mail -s etc. etc. (By the way, isn't that SQL a bit wonky? Wher...
mysql query formatting in email
1,605,590,299,000
We are developing a system that sends a lot of e-mails. For our testing purposes we would like to set up a mail server (smarthost) that accepts ALL mail to ALL domains, and then simply saves the mails to the local file system. I would like hints in how to set up such a server.
You can deploy Postfix mail server with little changes of default configuration. See below. Create transport map and open to edit: > /etc/postfix/transport Add the following: * local:some_local_user In main.cf: luser_relay = some_local_user@your_domain.tld transport_maps = hash:/etc/postfix/transport Replace some_l...
Mail server to receive all mail to file system
1,605,590,299,000
To clarify the intent of my question, let me make an analogy to the question "What is the simplest way to put data into a file?" The usual way that GUI users will put data into a (new) file is to double click on a program icon, click the menu bar, click "new," click "save," click to choose a location for the file, typ...
I'll assume that the two users and their two computers are independent, e.g. that user A can't simply access user B's computer and write files into the filesystem. That means that the minimal config is one where A can connect to the MTA on B's machine, and the MTA considers itself responsible for email to B's machine/...
What is the simplest way to email between two computers?
1,605,590,299,000
I am using Centos 5.6 , trying to compile postfix-3.1.3 with EAI support. I am following this guide and executing yum install libicu-devel "dependencies" make makefiles make install After installation I got the following warning: smtputf8_enable is true, but EAI support is not compiled in Any advice ?
Postfix needs to be recompiled after the installation of libicu-devel. When this library is not available during compile time, postfix will not link against it.
Compile postfix with EAI support
1,605,590,299,000
I'm trying to set up nullmailer with Google Apps. I think I have properly configured Google Apps and /etc/nullmailer/remotes, but somehow I'm getting this error Sending failed: Could not exec program Here's a bit more verbosity: # sudo -u mail nullmailer-send Rescanning queue. Starting delivery, 1 message(s) in queu...
I had the same problem and found the solution by using strace on the nullmailer daemon process. It tried to execute /usr/lib/nullmailer/--starttls which lead me to double-check the remotes file format and have a look at that directory. The solution is to add smtp to your remotes line: smtp-relay.gmail.com smtp --port=...
nullmailer: Sending failed: Could not exec program
1,605,590,299,000
I'm trying to modify a script which emails a user group the contents of a directory. The modification I'm looking for is to check the script below to see if it has valid output before sending. The script is: cd $foo/bar && ls | mail -s "Filenames in the \$foo/bar Directory" [email protected] I want to test if the fil...
You could trying testing with wc -l, something like: cd $foo/bar && [ `ls | wc -l` -gt 0 ] && ls | mail
Mail one liner to check if null before sending [duplicate]
1,605,590,299,000
I want to send a mail to myself at the restart of a server. We use AWS, and a restart results in a changed internal 10.x.x.x address. This address has to be configured in Postgres and elsewhere, and this would be a nice reminder. I found this solution, but when trying it I get the error that mail is not installed. S...
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 a...
Send mail at startup
1,605,590,299,000
I am setting up an email server for my personal domain. There will only be one user (me). I am running a DigitalOcean VPS on Arch, everything is up to date as of yesterday. I have got postfix installed and running: when you send an email to my new address, it gets stored in /var/spool/mail/richard. My problem is with ...
Postfix is delivering to a mailbox file rather than a Maildir. Try something like this in Dovecot: mail_location = mbox:~/mail:INBOX=/var/mail/%u Alternatively, configure postfix to deliver to a Maildir with a command like: sudo postconf -e "home_mailbox = Maildir/" And configure Dovecot to use a Maildir by specify...
How can I get dovecot to retrieve my email?
1,605,590,299,000
I'm running Debian I've set up ssmtp as my MTA and this works perfectly I can send mail using both mail and mailx with a standard user account BUT... When I run sudo apticron I get: send-mail: RCPT TO:<[user]@[mydomain].com> (550 Sender verify failed) Any ideas? (I've blanked the email details myself - that's not p...
Your remote mail server doesn't believe root@yourdomain in the SMTP envelope¹ is a valid email address, so it's refusing messages from you. And that's where apticron is trying to send from, so it doesn't work. ssmtp allows you to override the default email address and relay on a per-user basis in the /etc/ssmtp/revali...
root can't send mail (apticron) but user can (mail/mailx)
1,605,590,299,000
Does such a thing exist? I'd be interested in something like: You right-click a file in a file viewing manager, and click "gmail yourself this file". One click, and you're done. You open up the command-line, and type something like gmail ~/file.txt and file.txt is instantly sent to your own account.
Well, this one is not exactly the way you want. But still it could be useful for the second option in your question. Install the required packages. sudo apt-get install msmtp-mta Edit the following file to add the details. If the file doesn't exist, you could create it. vi ~/.msmtprc #Gmail account defaults logfi...
One-Click Script to Gmail Yourself a File
1,605,590,299,000
I need to override default colors in received HTML emails. I have followed this Howto, and modified my userContent.css accordingly. Basically, I need white text on dark background: $ cat userContent.css body { color: white !important; background-color: #303030 !important; } td { color: white !important; back...
You have changed the colors only on two HTML elements (body and td). You may need to do that for other elements, or * for all elements.
Thunderbird: Override colors in received HTML emails
1,605,590,299,000
I'm trying to automatize the updates of debian system, without making upgrades. Then i'll send an e-mail to me, everytime there is an upgrade available. I've tryied to do it with cron-apt, but i really don't like how the configuration is organized, that's why i would prefer using a (cleaner) cron job that launch the s...
Don't reinvent the wheel. apt-get install apticron Apticron is a simple script which sends daily emails about pending package updates such as security updates, properly handling packages on hold both by dselect and aptitude.
automate updates with a bash script and cron
1,605,590,299,000
I'm a bit confused how mail servers work, and the process of setting them up. Say I have an domain called example.com, and I have an A record for it. I'll be using postfix/dovecot for this setup along with an SSL certificate. When setting all this up, do I create a new A record for mail.example.com, as well as a MX re...
Yep, you've got it right. Do all of that. Here's why: Usually (and traditionally) example.com does not resolve to an actual host, or is the same as www. In order to decouple the domain name from the host that handles mail delivery for a domain name, a separate mail exchanger (MX) is designated. When mail is destined t...
Mail Server Setup, MX Records, and Hostnames?
1,605,590,299,000
I have a CentOS 6.3 server. I would like to create an email address like, for example, [email protected] that will be a special kind of email that will trigger a script. For example: suppose I mail [email protected] and the subject is an IP address. I want the server to receive that mail, extract that IP from the sub...
There are two things involved with doing this: How to get the email to the system process the email to append info to a file The first you can solve by having the mail be sent to the server directly, but if the server is not online all the time (located at home), it is probably better to have the emails sent to some...
Creating an email that can trigger a script
1,605,590,299,000
My problem is that I've been a heavy user of GMail's pop3-import feature and used it to pull mail from other GMail Accounts. Back then I did, however, only import new mail, not all the mail previously stored on the server. Now that I've started to use mutt as my mail client of choice I've decided to import all my form...
Use the ESMTPS id from mx.google.com to identify duplicates. These should be unmodified. In the example above: by mx.google.com with ESMTPS id e20sm18902485fga.1.2008.01.04.07.58.46 A very simple implementation would put all mails in one dir, extract the id and symlink the file to the id without using -f. Like: for FI...
Find 'duplicate' mails in maildir when header differs slightly
1,605,590,299,000
The situation I have the following ~/.fetchmailrc poll pop.gmail.com protocol pop3 user "[email protected]" password "***" ssl mda "/usr/bin/procmail -d default -a foo@example-com" poll pop.gmail.com protocol pop3 user "[email protected]" password "***" ssl mda "/usr/bin/pr...
You can give each account a different name and use the via option eg poll foo via pop.gmail.com ... poll bar via pop.gmail.com ... Now you can specify each one on the command line; fetchmail foo will only fetch mail for that one account. I use this type of structure for Outlook: poll outlook via imap-mail.outlook.co...
Retrieve mails of only one specific account with fetchmail
1,605,590,299,000
The mails are stored with full headers in a text file. (The file is an INBOX from the Thunderbird mail client. File format is a mboxrd variation.) How to list the first server for each mail, that the email travels through before hitting the inbox? The "Received" line lists server that the email travels through. You re...
I would split the mbox file into an approximation of its constituent messages based on the occurrence of From (without a colon). Then I would iterate across the set, picking out the last Received header for each. mbox=/path/to/mbox/file mkdir xx ( cd xx csplit -ksz -n5 "$mbox" '/^From /' '{*}' for m in *...
List first relay mail server from header
1,605,590,299,000
I run a small webserver that hosts a handful of domains which I use for personal and testing purposes. I want to set it up as a mail server as well, and I'm trying to understand the rDNS lookup that checks against the SMTP HELO header. The problem is that I have no control over the PTR records for my server's IP addr...
A server can send mail for a lot of different domains, even in one connection, that only has one HELO/EHLO. From that it's quite easy to see that the HELO/EHLO can not relate to any specific mail, instead it relates to the mail server, typically it's something that resolves to the ip the mail server is on. Technically...
Which domain is HELO checked against with rDNS? Mail server's domain, even if different from the sender's domain? Or the email sender's domain?
1,605,590,299,000
I'm using linux: Distributor ID: Ubuntu Description: Ubuntu 18.04.6 LTS Release: 18.04 Codename: bionic I noticed a few weeks ago that there is a file in my home directory: dead.letter. The file is updating at the first second of every minute with the same number of log line. I have been searching for...
Found the problem: We use nfs mounts in our organization. We also use AWS. We created a new instance from an ec2 instance I was working on. The template instance had a cron job, that kept running on the new instance, and writing data to the shared directory.
What process is generating dead.letter?
1,605,590,299,000
I have already read Why use Dovecot AND Postfix/Sendmail?, Why use both Dovecot and Postfix?, Why use both Dovecot and Postfix? which give the general idea, but here I'm looking for more precise details to understand how email servers connect together. Let's say I own the domain example.com with DNS configured like th...
That depends on how your SMTP client is set up but in general that's correct. Correct. Let's talk about qmail-compatible maildirs as no one really uses /var/mail/username UNIX-style mailboxes any longer (too many disadvantages, barely any advantages). Emails are stored where you specify your Maildir is, by "default" ...
During email delivery, how do MTA, MDA, POP/IMAP connect with each other?
1,605,590,299,000
I'd like to have Thunderbird running on Debian10/KDE in Offline mode (mostly for security and privacy purposes but also to not receive any other mails) but still be able to receive mails to the user or root from processes / apps running on the machine (e.g. for popup KDE notifications about system events like cronjob-...
The workaround was to create a new Thunderbird profile like described here. Then one can read the root@localhost mails with Thunderbird after setting the account up (without entering the root password into Thunderbird) like described here. This doesn't work if Thunderbird is in Offline mode but still keeps it fairly i...
How to allow Thunderbird to receive local mail (from apps to the user/root) while in offline mode?
1,605,590,299,000
I have the following keybindings in my muttrc (among others). bind generic,index,pager \Cf next-page bind generic,index,pager \Cb previous-page bind generic,index,pager \Cd half-down bind generic,index,pager \Cu half-up I have been trying to get a vim-like key-binding in mu...
Answer Adding following line into your muttrc will serve Your needs. set pager_stop = yes References From muttrc(5) / neomuttrc(5): pager_stop Type: boolean Default: no When set, the internal-pager will not move to the next message when you are at the end of a message and invoke the <next-page> function.
Prevent Ctrl-D from moving to next mail when reaching bottom of email in mutt pager
1,605,590,299,000
Is there a way to use different color for new email in inbox, when I am only a "cc/bcc" recipient, instead of regular "to" recipient ? I am alredy using custom color for new emails in inbox. This is what i have in my userChrome.css: /* unread messages */ #threadTree treechildren::-moz-tree-cell-text(unread), treechild...
While it seems they can't be set using CSS, colors can be set based on To, Cc, and Bcc state by setting up one or more message filters to tag the messages. First, create a tag of the desired color, e.g. a tag named Cc/Bcc. Then, create a filter to tag messages at a particular email address received as either Cc or Bcc...
thunderbird: different color for new email, when I am only a "cc" recipient, instead of regular "to" recipient
1,605,590,299,000
I have Mutt set up to switch to different accounts using a macro which works fine, but when I switch the Sidebar simply appends the folders of the account I'm switching over to below the folders of the mailbox I was in. I wish the Sidebar just to display the folders of the account I'm currently in. I use imap_check_...
Add unmailboxes * to the beginning of each account config file Mutt docs: The “unmailboxes” command is used to remove a token from the list of folders which receive mail. Use “unmailboxes *” to remove all tokens.
Mutt sidebar: switching accounts only appends mailboxes
1,605,590,299,000
In Thunderbird, I can go to Add-ons manager, search for extension, and click on Add to Thunderbird to install it. But I have multiple Thunderbird profiles, and installing every extension in every profile is tedious. Is there a way to download the extension file, unpack it somewhere (presumably in /usr) so that all cli...
You'll still need to find the ID of the extension, but you can find it by extracting the manifest.json file from the .xpi package. Then you can either read it by eye, or using any JSON tool, for example: $ jq .applications.gecko.id </tmp/manifest.json "{e2fda1a4-762b-4020-b5ad-a41df1933103}" Once you know the ID, you...
Install Thunderbird extension globally
1,605,590,299,000
I followed this tutorial: https://computingforgeeks.com/how-to-install-and-configure-postfix-as-a-send-only-smtp-server-on-ubuntu-18-04-lts/ I'm trying to setup a send only mail from my Ubuntu 19 server. I followed the guide above and tried to install mailutils using: apt install mailutils It installed something but...
Run dpkg-reconfigure postfix to see the wizard/GUI
Install Postfix using Mailutils on Ubuntu 19.04 server for sending out mail only
1,605,590,299,000
I am writing a shell script to setup a few servers and once it is done, it will send an email to our help desk letting us know that the server is ready to be used. I would like to use the following subject line: New Space Loop Activated! üéâ But I cannot for the life of me figure out how to make accept that emoji. I ...
The character üéâ in UTF-8 is: f0 9f 8e 89 So you need this string in the subject line: =?utf-8?Q?=F0=9F=8E=89?= or for the whole subject: New Space Loop Activated! =?utf-8?Q?=F0=9F=8E=89?= The sequence means character set is utf-8 and the Q means quoted-printable encoding. You can also use BASE64 encoding to save...
How to use emojis on the subject line of mail?
1,605,590,299,000
I've set up a mail server following https://thomas-leister.de/en/mailserver-debian-stretch/ and when trying to connect a client (Outlook 365) it's unable to connect to the SMTP server. Checking mail.log with full Dovecot verbosity it looks like it's authenticating IMAP then immediately closing the connection. Here's ...
Here, an SMTP client is speaking before it's been spoken to: Jun 21 07:57:10 mail postfix/postscreen[10463]: CONNECT from [185.234.218.188]:64778 to [208.146.44.129]:25 Jun 21 07:57:10 mail postfix/postscreen[10463]: PREGREET 11 after 0.16 from [185.234.218.188]:64778: EHLO User\r\n Jun 21 07:57:10 mail postfix/postsc...
Dovecot Immediate Connection Closed [closed]
1,605,590,299,000
I need to update exim on one of my servers to at least version 4.86 to use it with rspamd. But the latest version provided by the OS is 4.82. Is there any comfortable way to get the latest version, besides of building it from sources? Cheers
This is a somewhat generic answer on installing newer software on an older version of a Debian derivative. The first thing is to make sure that you actually want a newer version. Contrary to a popular misconception, newer isn't always better. The newer version usually has bug fixes but it also has new bugs. Distributi...
Need exim >=4.86 on Ubuntu 14.04 LTS
1,510,869,739,000
I have a server that I use for playing around with. I want to set up an email account that is @.com, but the way that SquirrelMail and the mail server is set up, the home folder for the username has to be stored in var/www/squirrelmail, instead of /home. Can I have two users named with different UID's, permissions, g...
That is probably not going to work because the system (the glibc) would resolve the name always to the same entry (probably the first). So it would not make a difference whether the second entry is there or not.
Can I have two users with the same name but different UID's?
1,510,869,739,000
I have Postfix configured to deliver to Maildir-format mailboxes: $ cat /etc/postfix/main.cf home_mailbox=Maildir/ mail_location = maildir:~/Maildir I have Dovecot configured the same: $ cat /etc/dovecot/conf.d/10-mail.conf mail_location = maildir:~/Maildir But the mail command seems unable to read my Maildir mailb...
The mail utility usually can't handle Maildir mailboxes. Use another mail client, such as mutt for example, that can. mutt -f /home/user/Maildir
Why email can't be read from Maildir? [closed]
1,510,869,739,000
"Issue"... The command is doing what is actually instructed to. Given this mbox format file: From: [email protected] #identifies the beginning of the first mail ... Subject: crcheck.sh #identifies the beginning of the mail body ... MYVARIABLE="123" ... From: [email protected] #identifies the beginning of the next ...
Try: $ awk "/Subject:/{a=0} /From:/{a=0; b=0} a && b && /MYVARIABLE=/{print} /Subject: crcheck.sh$/{a=1} /From: [email protected]/{b=1}" mbox MYVARIABLE="123" How it works /Subject:/{a=0} /From:/{a=0; b=0} When we reach a subject or from line, turn all flags false. a && b && /MYVARIABLE=/{print} If both flags are tr...
awk issue selecting lines between two patterns
1,510,869,739,000
I'd like to encrypt my home folder in CentOS. I notice Dovecot has created directories and files under ~/mail. If I encrypt, will my email stop working (remote access over imap and smtp)?
Your unencrypted directory is available only when you are logged in, it's a fake filesystem provided by the decryption program. When you're logged out, the fake (decrypted) filesystem does not exist. dovecot, at, cron cannot see it. Reconfigure dovecot to only use files/dirs that exist while you're logged out.
Encrypted home folder and email
1,510,869,739,000
I am installing new crontab job which will execute a shell script and then send the printed errors on the console to email. I know all of the required steps to do, which will be as following: 0 10,22 * * * . /X.sh 2>&1 >/dev/null | mail -s "subject" "email" Mu question is: when will it send the email? it will send...
The email will be sent every time X.sh finishes running, whenever that is. cron itself will send a job's output by email by default, to the relevant crontab owner or whatever MAILTO is set to; you could use that instead of manually calling mail.
crontab each 12 hour - when will it send an email?
1,510,869,739,000
Currently the server I have has blocked emails from being sent from it due to spam issues. So I am currently looking for a way to send e-mail through the command line or shell script through an external SMTP server like gmail. Please note that if I require other software to aid in this issue, I do not have root access...
msmtp is a command line application that can send email over smtp. You can pipe your email into it. Keep in mind that it is not an mail user agent so you have to pipe in the whole email not just the body.
Sending mail through external smtp server via command line/shell script
1,510,869,739,000
When using thread view in Thunderbird, pressing Enter on collapsed thread does not un-collapse the thread as would be logical, but instead opens all emails in that thread in separate windows. Is there a way to change this unfortunate behavior, and instead un-collapse the thread when I press Enter? I am using Thunderbi...
You may press Right instead of Enter to uncollapse the thread. You may set "operate_on_msgs_in_collapsed_threads" to false in config editor (as indicated in your Mozilla support issue.) so that only the current mail opens on Enter. You may install Dorando Keyconfig extension and setup up a command to archive whole co...
Thunderbird: disable ENTER opening all messages in thread
1,510,869,739,000
I've got a mail folder which contains a unique e-mail containing several attachment. I'd like to script the resending of the email as verbatim as possible. If I write cat tosend | mailx [email protected] Then the e-mail is forwarded as a text content, the attachment being unreadable for the mailer. Is there a way t...
Using sendmail(1) and formail(1) (from the procmail package), rather than mailx(1): formail -s sendmail -oem -oi [email protected] <mail-folder The point of formail(1) is just to split the folder into individual messages, you can omit it if you have a single message to bounce.
Resend (bounce) a message with attachment in mailx (or any other tools)
1,510,869,739,000
This seems like a basic question and there are variations of it. I have a ONE-COLUMN html file (let us call it status.html). I would like to send this file which has a few images as the BODY of an email. I would like to do this using the Linux command line, but I am unsure of how to proceed. I do not know how the imag...
"-a" Attach a file to your message using MIME. When attaching single or multiple files, separating filenames and recipient addresses with "--" is mandatory, e.g. mutt -a image.jpg -- addr1 or mutt -a img.jpg *.png -- addr1 addr2. The -a option must be placed at the end of command line options. –
Sending a HTML file (with images) as email body using command line
1,510,869,739,000
I have successfully set up Davmail on Ubuntu 14 and am able to read, receive and send mail on my Exchange account in Thunderbird. This page was a big help!: http://nknu.net/ubuntu-14-04-exchange-configuration-thunderbird-pidgin/ I set the account up as IMAP, so I can also browse folders. One thing I can't seem to do ...
The posters in this thread claim success although the explanation of what options need to be changed lacks detail. http://sourceforge.net/p/davmail/support-requests/134/ I have the URLs but I need more specific instructions in how to change the settings of Davmail and my email clients. Can anyone help?
Can I view my Microsoft Exchange Online Archive via Davmail in Thunderbird
1,510,869,739,000
I'm syncing my gmail account ('All Mail' and 'Sent' folder) with offlineimap to my harddrive. But it appears to me some emails are not downloaded. I disabled the conversation view in gmail and it shows me 4728 mails in 'All Mail'. Offlineimap creates 4703 files, shouldn't these two numbers match? ~/.offlineimaprc [Rep...
On closer look those missing 25 mails most likely are chat conversations which show up in Gmail within 'All Mail'. To sync them, you need to ensure the Chats label is visible in IMAP: Click the Gear icon > Settings > Labels > Check the checkbox "Show in IMAP" for chats.
Offlineimap mail count does not match Gmail's
1,510,869,739,000
I would like my server to send a mail to me when someone connects remotely over ssh to my server. who only gives me back the Username, TerminalID and Date. I cannot use only that, I need to check for the IP someone uses to connect to me. So the triggering part would be an external IP. How can I achieve that? EDIT: w...
You can add some shell scripting to /etc/bashrc or /etc/bash.bashrc maybe bepending on your linux distribution. Those are executed when user logs in remotely via SSH. Just test if there is $SSH_CLENT variable to distinguish the ssh login. There will be other usefull variables for your needs, like: SSH_ASKPASS=/usr/lib...
How to send a mail when someone remote connects to my server
1,510,869,739,000
Normally, I can send email from commandline, such as echo hello | mail -s "subject" [email protected] I have noticed that even when Postfix is not running on my machine, I can still "send" emails. Actually they are being queued in /var/spool/postfix/maildrop. But once Postfix is started again, these emails will be se...
Can somebody please explain how this works? Who copies the emails into /var/spool/postfix/maildrop, is it the email client (heirloom in my case) ? Local mail submissions, are received with the Postfix sendmail compatibility command, are queued in maildrop queue by postdrop program. The postdrop command is design...
sending emails with heirloom, even when Postfix is not running locally
1,510,869,739,000
I'm looking into creating my first email server on CentOS Linux. I know it can be a challenge when it comes to managing one, but I'm up for the challenge. If I have my domain name pointed directly to my email servers IP address, would I still have to add MX Records to my DNS? As far as i know, the email server should ...
if i have my domain name pointed directly to my email servers IP Address would i still have to add MX Records to my DNS? an MX record tells the internet what servers are responsible for handling incoming mail. so without an MX record, an email sent to your domain, would bounce back, as the remote email server would ...
Creating an email server on CentOS 6
1,510,869,739,000
I've successfully configured fetchmail and I'm able to download messages from the mail server but I'm not sure how to get the date on which a particular email was received. I need this date for reporting purposes.
That date is found inside the email headers. They look a bit like this: Received: from mail-pd0-f170.google.com (mail-pd0-f170.google.com [209.85.192.170]) by mailserver.example.com (Postfix) with ESMTP id DCFEE3983D for <[email protected]>; Tue, 23 Jul 2013 20:32:34 +0200 (CEST) Received: by mail-pd0-...
Unix Fetchmail Utility: date on which email was received
1,510,869,739,000
I'm writing a script to run certain processing activities (mainly moving some data files to another machine where they can backed up), but I only know when to trigger the copy when a mail is delivered to a specific folder in an IMAP mailserver (which is outside my network). So I'm looking for something that can only p...
Check imapfilter, which this you can check remote imap server - https://github.com/lefcha/imapfilter
Checking mail and running a script without downloading
1,510,869,739,000
Note: I use tcsh. I am trying make an alias that will use the mutt command to send an email with a pre-written body and subject line but that will take the alias argument and attach it to the email. The best I currently have is: alias emailattach 'echo "Message Body" | mutt -a \!:1 -s "Subject" [email protected]' Th...
Try changing your alias around so that the attachment is last in your call to mutt like so: $ alias emailattach 'echo "Message Body" | mutt -s "Subject" [email protected] -a \!:1' Doing it this way worked for me.
Problem Aliasing a Command With a Pipeline and an Argument
1,510,869,739,000
E.g. if I want to send a bunch of emails along the lines of "What does it feel like to X?" to [email protected] (Quora allows and even somewhat encourages me to ask highly similar questions there). And then give a dictionary of words that I want to substitute for X? I know that the mailx readme has a small section on ...
If you mean doing this via shell, then yes this is possible. We may have a different result in mind but the operation is similar to this structure I have written previously to deliver the message via shell. See: http://www.akamay.net/PUBLIC/massmail.tar The script uses three (3) files. Credential File - The actual co...
How would I automate sending highly similar emails with one word changed?
1,510,869,739,000
I need to add rules to my mail server. I need to bcc an email address on outgoing and incoming emails for certain email accounts. The first thing I need to do is to find out what mail server software I'm using! I have ssh access to our dedicated server, but everything was set up by the hosting company. Is there a way ...
Answer to your first question. netstat -lntp | fgrep ':25' You can get the process running as smtp server in the last column of the output of the above command. Post this output, then we can discuss further. As it is tcpserver, most probably you are using qmail. I have never used Qmail but I can give you some instruct...
Adding rules to my mail server
1,510,869,739,000
When I try to send email from alpine I get the following error: Error sending: connection failed to gmail-smtp... (The message disappear before I have the time to copy it). I suspect this is a firewall issue (I'm in a university campus). How can I fix this (or at least confirm)? Edit: I tried to telnet: yotam@sumsu...
Try connecting directly to the SMTP port on the server via telnet? See the Wikipedia page for an illustrative example. Start with the following (for a SMTP connection at port to smtp.gmail.com at port 25). Replace with the server and port you are using. In the following, EHLO and HELP are typed at the client prompt, a...
alpine failed to connect to smtp.gmail.com