date
int64
1,220B
1,719B
question_description
stringlengths
28
29.9k
accepted_answer
stringlengths
12
26.4k
question_title
stringlengths
14
159
1,510,869,739,000
I am currently working on a program converting mailbox files from an old, tenex based mail format to mbox. The tenex mailbox format has separator lines like the mbox format (the latter is called the From_ line), tenex: 7-Feb-86 21:41:21-EST,1925;000000000000 mbox: From [email protected] Fri Feb 07 14:20:00 1986 but...
The "From_" line is written by the mail.local program (originally called mail in the 7th Edition Unix) with the timestamp being the actual time when the message is written to the mailbox. I.e. "the date and time at which the message was received by the final recipient" is actually the time the message was written into...
email: Where does the datetime stamp in the From_ line of an mbox mail message stem from?
1,510,869,739,000
Let's say I have: 40 outbound emails to send main domain - main_domain.com 4 separate domains-workers with Postfix - mail.my_postfix1.com...mail.my_postfix4.com Goal: send 10 emails via each of 4 worker-Postfix domains, on behalf of main_domain.com. In other words, let the main domain use 4 domains with Postfix to s...
You will have to specify a SPF record for your domain handled by your servers (https://en.wikipedia.org/wiki/Sender_Policy_Framework). All of your MTAs needs to appear in this records. Additionally, it would help to add a DKIM record also, so that the big providers won't reject your outbound mails (https://en.wikipedi...
What's required to let a domain send outbound emails from multiple domains?
1,510,869,739,000
I have installed a Raspberry device on my home network from which I want to receive periodic e-mails for a certain manner. I wish to use the mailutils in order to send them via my scripts but I didn't quite manage to set up postfix successfully in order to do that. Specifically, when is it possible to do this by linki...
I would not use postfix, sendmail or Exim for this purpose. Far easier to configure and less resource hungry is any lightweight, send-only MTA like: https://wiki.debian.org/msmtp, or https://wiki.debian.org/sSMTP I used ssmtp and it is dead simple and effective. msmtp is a newer replacement, a bit more flexible one....
Setting up a local machine to only send e-mails
1,510,869,739,000
I'm attempting to setup a postfix relay system for my LAN. A lot of my services are blocked from WAN access and I want to be able to get notifications from them. As it stands it currently "works" but each e-mail is accompanied by a "Mailer Deamon Undeliverable" e-mail because it's sending correctly but always trying t...
I had an issue with mydestination. I should not have had domain.com in that field. I removed it and set it to mydestination = hostname hostname.domain.com localhost and now it works as expected.
Postfix always BCC [email protected]
1,561,651,785,000
Is there a quick and easy method to send an email (I already have automatic emails coming from the server for other events - I just need to be able to send one for this specific event) if a USB port restarts and, by extension, an external drive goes offline? I installed a new CCTV system in my father in law's house la...
Trafikito and monit are reasonably lightweight services which can monitor your drive, and if it fails, go check the USB port status. Then, either can mail out a message. Suggest you review their feature sets and see which you prefer.
Method to automatically email if a drive goes offline (or a USB port is restarted)
1,561,651,785,000
I have a number of Drupal websites running under several different domains. These websites must be able to send emails to users. Furthermore, I have a Zimbra mail server running. In Drupal I can either choose to send emails via SMTP or sendmail. Actually, I'd rather use the SMTP option so that I utilize my mail server...
For me it is better to let Zimbra manage domains. One important point is to have proper DNS record for each domains. Also if you have idea to use SSL/TLS to have certificate and key for this domain (as well as CA intermediate certificates) For more details you can check official Zimbra wiki
How to send emails from multiple domains
1,561,651,785,000
I am migrating a mailserver running sendmail 8.14.3 to a postfix server. The MDA on the new server is Dovecot. In order to ensure a seamless transition, it would be best if incoming mails are delivered to both servers simultaneously. I've heard about the SMART_HOST and nullcient options in sendmail, but I'm not sure ...
I can't test this right now but I'm fairly sure sendmail understands entries in /etc/aliases of the form fred: fred, fred@otherserver (If it goes into a mad loop, prefix the second fred with a backslash \.) Then it's a straightforward extract from /etc/passwd into the aliases file. And remember to run newaliases (?) ...
Sendmail migration: Replicating all incoming mails to another mailserver
1,561,651,785,000
Some server send email without Date header, and Thunderbird doesn't recognize the date.So, I want to use following settings and add Date header. local_header_rewrite_clients = permit_inet_interfaces, ermit_sasl_authenticated always_add_missing_headers = yes But postfix.org says this may break DKIM signatures. Is ther...
It doesn't really matter that your server uses DKIM. A DKIM signature is something added by the sender, and making one requires the sender's private key. As a part of DKIM signing, the sender's mail server takes some headers, typically including the Date header, concatenates these, and cryptographically signs the res...
How to add Date: header to received emails without break DKIM signatures
1,561,651,785,000
I have been receiving since a long time following mails: From: Cron Daemon <[email protected]> Subject: Cron <root@cloud-vps> test -x /usr/sbin/anacron || ( cd / && run-parts --report /etc/cron.daily ) To: [email protected] /etc/cron.daily/clamscan_daily: Starting a daily scan of / directory. Amount of data to be sc...
You need to resolve the password issue at the bottom of that email. The script is unable to access your MySQL server. WARNING: Can't open file /sys/module/jbd2/uevent: Permission denied /etc/cron.daily/logrotate: mysqladmin: connect to server at 'localhost' failed error: 'Access denied for user 'root'@'localhost' (usi...
Cron Daemon - LibClamAV errors
1,561,651,785,000
Dear Unix and Linux Community, I would like to use my hotmail account through alpine. I am using the POP3 protocol, and I am able to access the email from my Inbox. However, I am unable to send any email directly through alpine. Upon trying to send an email, I obtain the following message: [Sending mail | 100%...
change the customized headers field or it won't work. quoting from Alpine Faq: From Alpine's [M]AIN MENU, choose [S]etup, then [C]onfig. Move down to the Customized Headers option. Press "A Add Value". Use the format: From: "My Real Name" <[email protected]> although i used the key C ( means change values ) t...
Alpine with hotmail | SMTP | cannot send email
1,561,651,785,000
Trying to setup a simple automation system has proved exceedingly complicated for me. Using scripts, I want to use email to perform remote tasks. The script outline: Send an empty body email with the header as "Pattern1 (number)" Read the last 50 email headers. Find latest header matching "Pattern2 (number)". Save (e...
It can all be done with only curl. Send email MSG="From: [email protected] To: Receiver Subject: Test" echo "$MSG" | curl --url 'smtps://smtp.gmail.com:465' --ssl-reqd \ --mail-from "[email protected]" --mail-rcpt "[email protected]" \ --upload-file - --user "[email protected]:password" --insecure To read mail, firs...
Setup simple Automation system using Email
1,561,651,785,000
I have an email server with public dns entry that sends and receives fine. I am trying to add it to outlook as imap account but it keeps failing. Server error shows Oct 30 15:29:04 mail.example.local dovecot[17250]: imap-login: Disconnected (auth failed, 1 attempts in 4 secs): user=<[email protected]>, method=PLAIN, ...
I have solved the issue, after following this guide http://xmodulo.com/enable-user-authentication-postfix-smtp-server-sasl.html It still didn't work, but turns out it was because my password had a '£' in which was causing the issue.
imap-login: Disconnected
1,561,651,785,000
I have a postfix + dovecot mail server, today while checking my logs I see login attempts from unknown users / ip adresses, I guess this has to be a brute force attack. How could I stop and eventually prevent this? Help would be much appreciated! log: Aug 24 15:36:34 mail dovecot: auth: passwd-file(zamudio,201.222.55....
Your server is trying to use as open relay. You need define smtpd_relay_restrictions option. By default it use rules: smtpd_relay_restrictions = permit_mynetworks, permit_sasl_authenticated, defer_unauth_destination Which means that open relay is closed. As your...
My Postfix mail server receives login attempts from unknown users (brute force attempt) - what to do?
1,561,651,785,000
I didn't have mail installed before, so I've did it using: apt-get install mailutils After that I've tried to send a mail with this command: mail -s "Ssubjects" [email protected] But I see just this error message: cannot send message: Process exited with a non-zero status anyway I can't understand what is the probl...
Possible duplicate: mail: cannot send message: process exited with a non-zero status Try: sudo dpkg-reconfigure postfix as proposed in the answer.
'mail' use problem from command line
1,561,651,785,000
My corporate email is hosted by Office365. I think KMail is far more productive an email client than the Outlook Web Application (OWA), so I use IMAP to receive email and SMTP to send email. I can receive email fine, but on certain networks I cannot send mail. For example, GoGo Inflight Internet (gogoair) or some of t...
You can verify connectivity to STARTTLS enabled services using the apps that ship with OpenSSL: $ openssl s_client -starttls smtp -connect smtp.office365.com:587 If this succeeds, it will dump extensive information about the servers’s SSL configuration and the handshake to the terminal. You should then be able to tal...
Kmail cannot send to smtp.office365.com
1,561,651,785,000
I'm trying to sync my emails from an old server "server2" with a new one "server1" imapsync \ --host1 imap.server1.com --user1 [email protected] --password1 fdsfdsfsfd \ --host2 imap.server2.com --user2 [email protected] --password2 fdsfdsfds \ --debugimap1 --debugimap2 \ --tls1 --tls2 --de...
Replace --tls1 --tls2 by --ssl1 --ssl2
Unable to sync email using imapsync
1,561,651,785,000
Not so long ago I have found that exim is sending mail4root emails and logs them into /var/mail/mail. Example from exim log: 2016-07-19 09:39:02 1bPOgI-000370-1Q <= [email protected] U=root P=local S=78459 2016-07-19 09:39:02 1bPOgI-000370-1Q => /var/mail/mail <[email protected]> R=mail4root T=address_file 2016-07-19 ...
As a security measure Exim will not deliver email to root. The mail4root router is a last ditch handler to deliver mail for root to the mailbox for mail. Normally, an alias for root would be configured in /etc/aliases to deliver to the system administrator's personal mailbox. There are a number of aliases that redi...
Exim4 sends strange emails on root
1,561,651,785,000
Im am trying to send mail using Postfix, but I get the following error for all emails: May 13 12:44:46 myhost postfix/qmgr[12169]: A6D9644526: from=<[email protected]>, size=317, nrcpt=1 (queue active) May 13 12:44:46 myhost postfix/smtp[12178]: A6D9644526: to=<[email protected]>, relay=none, delay=0.03, delays=0.02/...
It seems the error was due to the ipv6 address in /etc/resolv.conf. I removed it and it now works.
postfix MX host not found
1,561,651,785,000
I want to download my emails via IMAP from email account and upload them to another. I want to do that manually in Python. I know how to retrieve my emails via IMAP, but how can I actually "upload" them to my another email account? Is there a standard way or does that depend on my 2nd email server?
You can upload with python as well: import imaplib # an alternative for IMAP4_SSL is IMAP4 if you're doing this locally imap = imaplib.IMAP4_SSL(your_2nd_server, its_imap_portnumber) imap.login(user_name, password) and then for each message you downloaded: imap.append(mailbox, [], delivery_time, message) You have...
How to upload my emails to another email server I've downloaded via IMAP from my 1st one?
1,561,651,785,000
I'm in the process of transferring a clients mail service from cPanel to Virtualmin. This person has multiple email addresses on different domains. Everything is working fine except today I am transferring the last of his email accounts which is [email protected] but Virtualmin is giving me the following error: Failed...
You would have to use a email alias in this case. The reason is that domains, Logs, and virtualmin-backup are the names of sub-directories that Virtualmin creates under each domain's home, so allowing a username with the same name would cause them to clash. A work-around for this is to create an email alias for [email...
Virtualmin - How to use reserved email names? ([email protected])
1,561,651,785,000
THe issue i am having is that i am trying to create a email server but my emails are rejected due to invalid ptr record. $TTL 600 @ IN SOA ns1.first-ns.de. postmaster.robot.first-ns.de. ( 2016012407 ; serial 14400 ; refresh 1800 ; retry 604800 ; expire 600 ) ; minim...
You must have your reverse and forward zones separate from each other at all times. Example forward zone, zone "angelsofclockwork.net" $ORIGIN angelsofclockwork.net. $TTL 86400 @ IN SOA angelsofclockwork.net. palaceredirect.angelsofclockwork.net. ( 410 ...
Bind dns zone will not work
1,561,651,785,000
I am running a Debian Jessie 8.1 server with a functioning postfix, dovecot, and suirrelmail/rainloop. I have multiple domains on the server. The main server domain is set via example.com.vhost because it is configured with ispconfig3. However, each additional domain is configured through /etc/apache2/sites-available/...
There are two ways to fix this: Add mappings for all virtual domains to /etc/postfix/virtual. Postfix will accept a message if any entry in that file matches. Setting virtual_alias_domains to the list of other domains you want to receive mail for. You can then use a regexp table virtual_alias_maps = pcre:/etc/postf...
Serve mail for multiple domains on a single server?
1,561,651,785,000
I installed exim4 on a Debian server configured it to use Dovecot LMTP delivery and everything works nice. But I'm having problems with a bit of a spam attack right now. I installed fail2ban but it's a bit slow to catch up. Also I was looking at the actions for the exim4 jail and I saw that there can be error messages...
You can't force a remote client to attempt to authenticate, because you don't know until the RCPT TO: whether the client is attempting to deliver an email to your server (which doesn't require authentication unless you have a very unusual configuration like only accepting mail from known mail servers) or it is trying ...
How to force valid authentication in exim before sending at all?
1,561,651,785,000
How can I configure fetchmail to fetch a folder to a specific target folder? Or at least not fetch to inbox? If it would fetch from sent to sent (or any folder to the same folder name) I'd be happy with it. Fetching sent and putting them in my inbox and marking them as "new mail" would be crazy, now wouldn't it?
You might want to have a look at a filtering solution such as procmail. You can have fetchmail collect the mail from your IMAP or POP (or whatever) server and then specify in your ~/.fetchmailrc configuration that it should deliver with procmail (see the mda setting in the manual). You would then set up procmail to f...
fetchmail: fetch sent mail to sent folder, or fetch to a target folder
1,561,651,785,000
How can I setup alpine to use more than one mail address? That SMTP Server parameter in config looks like an global. Can someone help me? NOTE: At least for both e-mails on the same server. Thanks.
In Setup > collectionLists add a new entry like below: (at the main menu just press S L A): here an example if you have a gmail account: Nickname : gmail-test Server : imap.gmail.com/ssl/[email protected] Path : View : The corresponding entry (gmail-test in this example) will be created and will be acc...
Alpine: work with some e-mails
1,561,651,785,000
I'm running Ubuntu 14.10 installed postfix dovecot vimbadmin and roundcube. Everything works except dovecot. When I restart dovecot I get this: stop: Unknown instance: dovecot start/running, proccess 6580 In my var/log/dovecot.log file I get this: Fatal: service(auth) Group doesn't exist: postifx (See service auth ...
You presumably have a typo, postifx should be postfix. Search the dovecot config files for postifx and fix those.
Dovecot (imap) not starting
1,561,651,785,000
I have CentOS running mutt. When mails are sent from mutt (via a shell script), it takes the current user name as sender address causing it to go into the spam. I receive mail as From: tech What I need is: From: [email protected] All I need is a single place change that reflects everwhere. i.e. if I send from...
Do you have a system-wide mutt RC file? Perhaps it is here: /etc/mutt/Muttrc? Within the file, set the hostname with set hostname=myserver.com.
Configure sender address for all users in mutt
1,561,651,785,000
I'm using offlineimap + mutt + msmtp to handle my email. I would like to have an unorthodox configuration, where all of my current mail (received, sent, and drafts) reside in the INBOX (or at least a single primary folder) and all the rest to be in the archive. This way I can push emails that I no longer need anymore ...
In your .muttrc: set mbox=imap://imapsrvr/INBOX set record=imap://imapsrvr/INBOX set spoolfile=imap://imapsrvr/INBOX set postponed=imap://imapsrvr/INBOX though I've never seen what mutt would make of the inbox being your drafts folder. I assume it will treat all emails in your inbox as drafts (untested).
Mutt - sent and drafts in the INBOX
1,381,087,722,000
Further to my posting here: Why does my CMS run extremely slow in my workstation (Ubuntu) I now ask "Do I need Nullmailer-Send" running? The reason I ask, is that earlier this year (2013) I had issues regarding large .log files being created in /var/log which result in some .logs being some 1GB and I had to manually d...
You should have a way to send mail on any unix machine in such a way that users can read it. A common sender of mail is cron: if any cron job produces output, it will be mailed to the local user (or to the alternate address specified in the crontab). Other services may want to send mail to the system administrator, fo...
Do I Need Nullmailer-send running?
1,381,087,722,000
I have a mail server that should receive all mails, even if no user exists. My big problem is the: Postfix Address Verification like mentioned here: http://www.postfix.org/ADDRESS_VERIFICATION_README.html Servers that use that kind of recipient verification won't send me mails if there is no user to receive these mail...
If your mail server needs to accept and deliver mail for all addresses in your domain(s) whether they "exist" or not, then it needs to be configured to do so. As soon as it is, then it will immediately start providing the right responses to any remote servers doing recipient verification. Exactly how to do this depen...
postfix configuration to verify all recipients
1,381,087,722,000
I wrote a little script to send multiple mails from a list with differents subjects. #!/bin/bash while read -a line do mailadd=${line[0]} subject=${line[1]} mutt -s `echo $subject` `echo $mailadd` < /home/emanuele/testomail.txt done < prova.txt The scripts works fine and sends the mails, but mutt tell me t...
First, `echo $subject` is a convoluted way of writing $subject (except that it mangles the value a bit more if it contains whitespace or \[*?, because $subject outside quotes is treated as a whitespace-separated list of wildcard patterns, and then the result of the whole command substitution is again treated as a whit...
mutt weird action
1,381,087,722,000
I have been struggling to get this to work for a little while now so I have come in the hope of getting a wee bit of help. I am running redhat 6.3, and using the machine as a webserver. My question is the following: Say my domain name is domain.com. How do I get an email sent to "[email protected]" to "[email protecte...
It depends on the email package you are using and how it is setup. With /etc/aliases, all you need is add the following line webmaster: [email protected] You may or may not need to do the following (it is required if running postfix) cd /etc postalias aliases Then restart your email service. PS: If the above don't w...
Server inbound email forwarding
1,381,087,722,000
I try to do this: $ mail -s "Hello world" [email protected] This is a test from my server EOT …and get this: /usr/sbin/ssmtp: No such file or directory $ "/home/user//dead.letter" 9/248 . . . message not sent. Which makes sense, because I uninstalled SSMTP in favor of Postfix. How do I change it so mail uses the rig...
Oh man, that’ll teach me to RTFM—I had everything set up correctly; all I had to do was start the postfix daemon. (After that, a backlog of undelivered e-mail from a month ago arrived in my inbox!) I guess I forgot to add it to my rc.conf after I installed it, so it didn’t start back up again after one of my infrequen...
Arch Linux Using the Wrong MTA
1,381,087,722,000
I am running a small server on a LAN and do not expect more than a couple dozen emails an hour or so. A user on the LAN accidentally set off a few thousand emails at once. Is there a tool or setting (using exim4, but any popular open source MTA available on Ubuntu will do) that could temporarily block such episodes ...
For exim4, you're looking for ACL ratelimit settings (although some mailers put it under 'policy')
How to limit the number of messages sent through a mail server?
1,381,087,722,000
I'm in the middle of writing a Python program which simply sends the same HTML message with an attachment to a large list of email addresses (BCC). Is there a utility I could use to do this rather than writing something from scratch? The actual email message doesn't vary at all, I simply need to send the same HTML and...
You can use a command-line program such as or mutt. See http://www.mutt.org/. Edit: have you looked at http://docs.python.org/library/email-examples.html?
Utility for sending HTML mail with attachments to a long list of emails?
1,381,087,722,000
I have installed roundcube mail and when it tried to use installer which uses php mail it is loading for 5 to 10 minutes and then telling me 'ok' but no mail comes to me. smtp_port is 25 host is localhost in my php.ini file
The problem is configure set sendmail -t under unix line to /usr/sbin/sendmail -t and then configure postfix
php mail not working in rhel server?
1,381,087,722,000
Mailman, mlmmj and probably other Mailinglist-Software support the feature 'no mail delivery subscription'. Meaning that you can subscribe and then disable mail delivery. This useful for times you are at vacation or when you want to read that list via gmane.org or a similar service. I can't find anything about majordo...
No, it does not. Majardomo seems to be pretty much end of development, and via internet search one find just rumours that a future development majordomo version would support such a feature ... perhaps. Anyway, most mailing-lists seem to have switched from majordomo - currently, one famous exception is the Postfix ma...
Does majordomo support 'no mail delivery subscription'?
1,381,087,722,000
I'm sending email from a script using mailx. The script is run daily by systemd, using .service and .timer files. For testing purposes I'm sending from the command line. The mail is sent with the command echo "Test message - you know the drill" | mailx -r "[email protected]" -s "Test Message" [email protected] (perso...
Since you want to use pre-installed programs and because you have postfix installed, we can use a postfix mode to give you greater control of what you send and how it looks. This is done via sendmail -t. In this mode we use postfix as a mail submission agent (MSA), which is what mailx does anyway, and you can specif...
How to include a display name when sending mail with mailx
1,381,087,722,000
I am using mail from GNU Mailutils to read the contents of a Maildir. For emails that have already been marked as read, is there a way to mark them as unread in mail?
Update: As of GNU Mailutils version 3.14 (released on 2022-01-02), GNU Mailutils implements the "unread" command. An email can be marked as unread by pressing U. Old answer: This feature is not mentioned in POSIX mailx, and is not implemented by GNU Mailutils' mailx. S-nail and the BSDs' mailx support an unread comma...
mail: How do I mark an email as unread?
1,381,087,722,000
I've got a mail server set up using postfix, dovecot, opendkim, and spamassassin. After a bit of hassle, I managed to get incoming mail working--I even set this account up using that server. However, I've got a problem with outgoing mail. My ISP, fat as it is, blocks communications through port 25... meaning that, obv...
I asked my ISP to unblock port 25, and unfortunately, corporate higher-ups don't let users use that port at all, so it can't be unblocked. So because of that, I just sucked it up and bought a VPS, and it worked perfectly. Turns out to be useful for quite a lot of things besides mail though, such as a VPN, a fast CPU f...
Postfix: sending outgoing mail through port 465/587 locally
1,381,087,722,000
I know you need to specify your email address, password, and SMTP server when sending emails using command line tools such as sendmail, sendEmail, etc. This is also true in other languages such as using the Python SMTP module, smtplib. I'm wondering why I can just use the default mail command to send emails without sp...
mail is a Mail User Agent (MUA). It is one of the tools responsible for providing an interface to the email subsystem to a user. For example you can use it to send and email and to read messages that have been delivered in the traditional way to your system. It is concerned with users, not with delivery. You can have ...
Why I don't need to specify SMTP server in mail?
1,381,087,722,000
In order to (semi-)automate some of my workflows I would like to find a way to open an Evolution mail compose window with a file of my choosing already attached. I have learned so far that: Evolution accepts "mailto:" links at the command line, but unfortunately the "mailto:" URL scheme does not allow specifying an a...
Through a stroke of luck I stumbled across the answer myself, with evolution as the default mail application I can simply use xdg-email --attach <filename> and it will do precisely what I was trying to do. It is part of xdg-utils and came preinstalled on Ubuntu 20.10 and seeing that it is a freedesktop package should...
How to open an evolution compose window with file attachment
1,381,087,722,000
I use an email client called Alpine. Currently I start it in one of several different modes in order to specify the outgoing SMTP server based on what I'm doing, in particular the From address that I wish to use. What would be much more convenient is if I could simply direct Alpine to use my own SMTP server (on my lap...
Answer for Alpine email client Recent versions of Alpine are compiled for Ubuntu with many of the available patches, i.e., enhancements, and these include a feature called "smtp-rules". It's not perfectly well documented, but here is what the .pinerc section looks like for me. It handles email addresses from my employ...
outgoing smtp choose server based on From address
1,381,087,722,000
I have written a shell scripting for monitoring the system CPU usage and memory usage. I need to know how to send notification to mail that my system reached particular threshold (example:- 90%). My code: #! /bin/bash printf "Date\t\t\tMemory\t\tDisk\t\tCPU\n" end=$((SECONDS+30)) while [ $SECONDS -lt $end ]; do CURREN...
You probably should use some monitoring solution (Nagios, Zabbix FTW!). But if you really want to use your custom script you can just use mail program. echo "Current CPU USAGE $CPU" | mail -s "This is subject like: CPU WARNING" [email protected] You can also use ssmpt. I didn't tested it but there is simple article a...
How to set alarm/alert if my system cpu usage reaches a particular threshold?
1,581,871,797,000
I recently installed neomutt on my fresh Arch installation. I setup my .muttrc as follows: # Receive mail set imap_user = [email protected] set folder = imap://imap.example.org/ set spoolfile = +INBOX # Send mail set realname = 'name' set from = [email protected] set use_from = yes s...
"Which tells me this must be a problem on my side, not from the server." Nope. That tells you that a machine named smtp.example.org exists, it has 11.111.111.111, and about 91ms average roundtrip latency. Nothing more than that. Once you try to do something more complex than sending an icmp echo request, some secu...
mutt: Could not connect to <smtp_url> (No route to host)
1,581,871,797,000
I have created a script to install Postfix and it works perfect with all my Ubuntu clients, but not on my Fedora client. The Fedora client is able to send e-mail directly to [email protected], but when sent to root it should be redirected to [email protected] but is instead sent to [email protected] I can't figure out...
Well I have used this in the past, but tried to trim down my configs while setting Postfix up this time around. I'm not sure why Ubuntu doesn't need it, but Fedora does, but this is how I fixed it. /etc/postfix/main.cf: canonical_maps = hash:/etc/postfix/canonical /etc/postfix/canonical: root [email protected] Rel...
Postfix on Fedora not following Aliases
1,581,871,797,000
I've recently started using Notmuch. One thing I am missing is to setup afew to move messages between folders after tagging them with Notmuch. It all works fine with just one account under ~/Mail, however, I want to operate on 3 separate accounts which would be ~/Mail/Account1 ~/Mail/Account2 ~/Mail/Account3 How do I ...
I've talked about my issue with the creator of the application here. Basically the idea is to use the FolderNameFilter with maildir_separator = / setting. This splits up your folders so that you can then reference your accounts like so: account1/INBOX , account2/INBOX , account3/INBOX
Multiple accounts with afew
1,581,871,797,000
Picture a mail store for virtual users. Arriving mail is managed by Postfix (creating new files); access to mail is provided by Courier IMAP (moving files around, deleting files, creating sent mail); and periodically, off-site backups are taken (reading files without changing anything). Obviously this will all work if...
After further research, I've come to the conclusion that this isn't possible; it's a form of file giveaway (because the postfix user would need to create files owned by backup). Looks like the backup program will simply have to run with group access to the mailstore, and thus be depended on to not change anything.
Postfix, Courier, and backups - appropriate file permissions?
1,581,871,797,000
Is there any way to automatically click a link in an email from a specific recipient in Evolution, as the emails come in? Perhaps there is an extension that can be added, or possibly a macro? If not, is there any other way of doing this?
I don't think that you can directly "click" links, but Evolution have filters that can invoke different actions. One of the action is Pipe to Program. Create filter by going to: Edit -> Message filters -> Add and set it to filter emails from the address that you want. In Then section select Pipe to Program and select ...
Can hyperlink clicks be automated in Evolution and how
1,581,871,797,000
If you like to decrypt messages in the Sylpheed email client the manual suggest to create a custom action to execute the following command: *gpg2 --no-tty --batch --yes --command-fd 0 --passphrase-fd 0 --decrypt %f| If I try to decrypt a email with this action the output from the terminal is written to the body of th...
I create a new action under Configuration / Actions... and assign the command */home/ubuntu/Documents/CustomScripts/decryptMail.sh %f ~/doc to this action. The decryptMail.sh file contains the following commands: gpg2 --no-tty --batch --yes --command-fd 0 --passphrase-fd 0 --output $2 --decrypt $1 decryptedString=$(ca...
Create a action in Sylpheed to decrypt messages
1,581,871,797,000
I am trying to write a bash script with a function which you use to send an email from the command line to an address and include a Cc address, a subject line, and an input file. For example, if the function is called "m," the typed command would look like: m [email protected] [email protected] SubjectLine TextFile.tx...
#!/bin/bash m() { to_addr="$1" cc_addr="$2" subject="$3" body="$4" cat "$body" | mail -s "$subject" -c "$cc_addr" "$to_addr" } if [[ "$#" -eq 4 ]]; then m "$1" "$2" "$3" "$4" else echo "Incorrect number of paramaters. Aborting." echo "Example syntax: $0 [email protected] [email prote...
Script to send mail using function
1,462,867,651,000
I have several months of Google Alerts in my email and I would like to share them somewhere on the web (for instance on a MediaWiki wiki). Is there an easy way to export them? The alerts contain HTML of this kind (seen from Thunderbird): <div style="color:#fff;font-size:9px;letter-spacing:0.8px"> <div style="padding:3...
This worked for me: download the alerts from your email in a Thunderbird directory; install the ImportExportTools plugin and export the whole directory as HTML; go to the export directory and run: find * -print0 | xargs -0 -I § bash -c 'NAME="§"; DATE="{{#time:j F Y| ${NAME:0:8} }}"; grep --text -Eo "ru=([^&]+)&amp;"...
How to export Google Alerts citations?
1,462,867,651,000
I'm currently trying to set up Postfix with Dovecot, but something does not seem to work the way it should be. For some reason, mails I sent to my mail account appear in the logs, but do not become relocated into the respective mailbox. The logs are not displaying any error, so I am pretty much left without a clue whe...
You probably have the default local_transport = local as the log says delivered to mailbox. You need to tell postfix to use dovecot as the transport for local deliveries. you can do this as follows: Edit your main.cf file and modify it to have the following lines: local_transport = virtual virtual_transport = dovecot ...
Postfix / Dovecot Mail appears in logs, but not in its respective folder
1,462,867,651,000
I host a handful of domains on a single box (Linux, Ubuntu 13.x) and am attempting to use Postfix 2.10.2-1 to route mail to them. (I used sendmail for the past 10 years, so this is new to me.) All my MX records are set up accordingly, so external mail is reaching the box just fine. I followed the various online tuto...
So I was able to solve my problem as I suggested at the end of my question, but I also concluded that avoiding virtual domains may be the correct way to go. First, the initial proposed solution: remove references to a.com from the virtual file. virtual ------- #[email protected] postmaster #@a.com userA [...
Postfix trivial-rewrite expands recipient incorrectly after virtual aliasing is done
1,462,867,651,000
I have been trying to use the unix mail command to send emails, but haven't been having much success. I wasn't getting any errors though so I checked my var/mail file and found a lot of these messages: Mailing to remote domains not supported That makes sense, because I haven't given it an SMTP server, but how do I d...
Like others have said, you'll need to set up a local mail server (sendmail, postfix, or whatever is your preference). My assumption is that you're doing this from your home and you get an IP that changes every so often. If this is the case, then you'll find other problems with sending email. A lot of servers will sim...
How do I send email from a terminal?
1,462,867,651,000
I can't find a guide for this (they are old and don't work) and I can't seem to manage to install it. I can't install Postfix because of its dependencies, so I'm going with Exim, which I installed through yum install exim and it was the latest version. However, I have no idea where to go from here. I know that I need ...
Dovecot 2.2.10 is now in the updates repo and can be installed via yum install dovecot. Horde can be obtained from remi's PHP repository, which features not only an up-to-date version of PHP but also packages for Horde and various of its modules. After enabling remi's repo, a simple yum install php-horde-imp should b...
How do I install Exim and Horde on Centos 7 with MariaDB 10?
1,462,867,651,000
I have a CentOS box running my Apache website and Postfix, but whenever I try PHP's mail() function to my @aevidi email, it sends to my local mailbox in ~/mail, but is not visible in Zoho's webmail. When I send an email from my Gmail account to my @aevidi email, I see it in Zoho but not in my local mailbox (expected r...
If you want postfix to deliver mails for aevidi.com by doing an MX lookup (i.e to Zoho mail servers, in your case), then you should remove $domain i.e aevidi.com from mydestination.
Postfix is sending and receiving mail locally, but not to external mailbox
1,462,867,651,000
I tried to install modoboa follow this steps: http://modoboa.readthedocs.org/en/latest/getting_started/install.html I installed modoboa with pip install modoboa: Traceback (most recent call last): File "manage.py", line 10, in <module> execute_from_command_line(sys.argv) File "/usr/local/lib/python2.7/dist-pac...
You should install the python mysqldb package provided with your distribution. On a debian/ubuntu one: $ apt-get install python-mysqldb
Modoboa 1.1.1 Deployment Errors
1,462,867,651,000
To quote from finger's man page Mail status is shown as No Mail.'' if there is no mail at all, Mail last read DDD MMM ## HH:MM YYYY (TZ)'' if the person has looked at their mailbox since new mail arriving, or New mail received ...'', Unread since ...'' if they have new mail. I'd rather i...
Finger daemon implementations vary but I don't know of any that allows users to choose whether to reveal the time when they last checked their email. If you want to keep this information private, arrange for your email to be delivered to a non-default mailbox. How to do that depends on the email setup. A lot of sites ...
Prevent `finger` from giving out mail info
1,462,867,651,000
mail -f /home/debian9/Maildir When new email coming,how to receive it in mailutils interface? There are 1 email in my /home/debian9/Maildir. Sent an email from admin to debian9 with command: echo "This is the message body of new emial" | mail -s "This is the new subject " debian9 The new email can't be displayed ....
You don't need a specific command to receive mail, mail is automatically delivered and stored on the machine's filesystem (usually on /var/spool/mail/username) by the appropriate Mail Delivery Agent. Mailutils is a Mail User Agent. To read received mail, use one of these commands: mail -p mail --print mail --read Sou...
How to receive new email?
1,391,814,340,000
Do any of the common Unix/Linux platforms provide a way to query the system administrator contact information from the command line. Obviously a system admin might not include this information when they set up the server, but is there a way to ask for it when it is there (e.g., name or email)?
Assuming there's no organizational procedure, you can't ask your coworkers, and you don't know the company who runs the server... You could see if there's any contact information when you log in, e.g. in /etc/issue, /etc/motd Or you could try emailing root@<this hostname>. Or you could look at who is in the root or wh...
Get contact information of system administrator from the terminal
1,391,814,340,000
I am looking for a simple procedure to extract email from my inbox into a file for further processing, using e.g. awk. With "extract" I mean use e.g. regex to get emails with a particular subject. My Inbox is currently over 1Gb, so I use the tail command to get the last part. Here is an example of two messages: From [...
The format of the message is RFC 2282, the Internet Message Format. The file format sounds like you're describing the mbox format, which is RFC 4155. According to RFC 4155, a new message in an mbox database begins with the From keyword, a single space then the address of the reported sender, a single space and the UTC...
Format of SMTP headers for scanning inbox email
1,391,814,340,000
Is there a command line utility that checks if a specified mailserver is on some well-known blacklist? I know amispammer but it is only available on Debian, it seems to be unmaintained and last time I checked it was very memory hungry.
Since I didn't find an amispammer substitute I created check-dnsbl.py, a small Python script that checks some well-known blacklists. It uses dnspython for all the necessary DNS requests. Example: $ ./check-dnsbl.py 117.246.201.146 2016-11-05 19:01:13 - ERROR - There is no reverse DNS record for 117.246.201.146...
Mail server blacklist checker
1,391,814,340,000
Is there any simple text-based mail client that I could use that could trigger a PHP script to parse mails received from the users? I have a PHP application that sends email out to users and it would be nice if the application can parse the reply from users and store them into the database. I'm using Centos 6 with Pos...
Your question is a bit confusing, as you refer to a text-based mail client and a PHP application and then specify that "the application" (i.e. your PHP application) to store email (or data extracted from that) in a database. You can and probably should separate your sending application from your response processing a...
Linux mail client that can trigger a PHP script to parse email received
1,391,814,340,000
I have many email archived in eml format. The problem is that I can't view them without installing an email client and importing eml files, which is tedious and not what i want. Ideally, I would like to find something like a pdf viewer that opens when you click on the file. I currently use munpack -t <file.eml> that e...
Thunderbird opens .eml files, just like that, no need for importing them.
How to visualise eml files?
1,391,814,340,000
Using Procmail, I would like to add a rule that dictates: If any email comes from this specific email address, in addition to delivering it locally, also forward it to this other email address. My attempt at this rule is as follows: :0 c: * ^From:[email protected] ! [email protected] ... but this does not appear to w...
You really should provide debugging details with an example of the message you are testing with; but we can speculate: Maybe the regex doesn't match. Perhaps you actually mean :0c * ^From:(.*\<)?sender@example\.com ! [email protected] Notice also the absence of a second colon after the c flag (you cannot meaningful...
How can I set a simple forwarding procmail rule based on FROM?
1,391,814,340,000
Apologies if this is not the right place to ask. My email address is "[email protected]", but I subscribed (to several Debian mailing lists) with the email "[email protected]" (I'm 99% sure). I think because of the "+ trick", the system fail to unsubscribe me. I've tried the unsubscription forms and the alternative m...
The “+ trick” is used by many subscribers to the Debian mailing lists, so it’s unlikely that that is what is causing problems for you, at least not on the mailing list side of things. First, you need to change the “99% sure” to “100% sure”. To do so, look for an email you received from a Debian mailing list; in Gmail,...
Help unsubscribing from Debian mailing lists [closed]
1,391,814,340,000
I have a sample script here I want to bold the word BOLD in the text and send through email. Tried several ways but not seems to working. BODY="Hello. I want to BOLD this" { echo "From: [email protected]" echo "To: [email protected]" echo "Subject: Texting" echo "X-Mailer: htmlmail" $VERSION echo "Mime-Versio...
you need a blank line between the email header and body. you are trying to put double quotes in a double quoted string, incorrectly. Try this: /usr/sbin/sendmail -t <<END_EMAIL From: [email protected] To: [email protected] Subject: Texting X-Mailer: htmlmail $version Mime-Version: 1.0 Content-Type: text/html; charse...
Bold a text in Bash
1,391,814,340,000
So I was playing a little with permissions in my system and then I noticed there is no permission specified for sending the file somewhere else. I tried, as a simple user, the following command: mail -a //etc/shadow [email protected] I was satisfied to get a Permission Denied message, but it's still not clear what th...
There isn't one, because "sending" a file isn't really a filesystem-level operation. What the mail command does, is that it opens the file for reading, reads the data, and sends (writes) it over the network socket (probably encoded in the case of email, not that it matters). Similarly, an FTP client, scp, or any other...
Which permissions do I need in order to send someone else / root files?
1,391,814,340,000
TLDR: I need a utility that reads an email and looks at the To: and Cc: fields to find an email address from a list of knows addresses. If it finds one I want it to output the email with an extra deliver_to: <address> envelope line. Background My ISP delivers all company mail to a "domain mailbox"/"Catch all" mailbox...
Turns out that my answer was in the extensive getmail documentation. I need to use what getmail calls MultiGuesser. However since in my case my ISP was adding a line like this in the envelope headers: for <[email protected]> and since MultiGuesser is not perfect (e.g. it can't guess right if the recipient is bcc'ed) ...
What utility can add a delivered_to line to an email based on To: and Cc:?
1,391,814,340,000
Often times when there's an email address on a website, it is not just plaintext, but a link (hyperlink?). However, instead of containing an address such as https://unix.stackexchange.com it contains mailto:[email protected] which - upon a click - opens a browser "page not found". This seems very useless, however a qu...
They are a URI for an e-mail address that the browser can use to invoke an e-mail application in order to send e-mail to the given address. The browser should provide a configuration option to set the application used. cron uses the unrelated MAILTO variable (i.e. MAILTO=...) in its configuration to know where to send...
What is the function of "mailto:[email protected]"
1,391,814,340,000
I have to email an HTML file in the body of an email from a UNIX machine. Let us call the HTML file as hello.html I am using the following code in bash script, ( echo "To: [email protected]" echo "Subject: Report" echo "Content-Type: text/html" echo cat hello.html echo ) | /usr/sbin/sendmail -t The above code wo...
I suggest you send yourself an actual email with zip file attachment and look at the raw contents. What you'll find is that the email will be formatted per the MIME standard which specifies how to include various file formats in a textual email. In your case the top-level Content-type will be something like multipart/...
How to add an attachment to a HTML email in UNIX?
1,391,814,340,000
I'm developing an email client and need a IMAP server without ssl to test with. I have a bare Ubuntu 16.04 install with DigitalOceans I would like to setup as a simple imap server. It doesn't need to be able to accually send emails, I just need to be able to connect to it using the imap protocal. What's the bare mini...
dovecot should work more or less out of the box. You may need to enable plaintext auth on insecure connections. Uncomment the disable_plaintext_auth line and change yes to no disable_plaintext_auth = no Install the package with the command sudo apt-get install dovecot-imapd.
Simplest IMAP configuration without SSL
1,391,814,340,000
in my mail today ( I checked it today, the messages started 5 days ago) I got messages from popcon the package popularity contest which says: ... A message that you sent could not be delivered to one or more of its recipients. This is a permanent error. The following address(es) failed: [email protected] Mailin...
The error is pretty much self-explanatory. You need to configure your mailserver to be able to send mail outside your local domain.
popcon failed is the mailto address busted?
1,391,814,340,000
Do we need to configure postfix to use Google Apps gmail account or adding the correct MX records is sufficient. I'm trying to use Google Apps gmail account for my domain. Hosted on CentOS 6 VPS. I have 12 emails in total. One of which is for mailing list subscription using mailchimp (sending newletter). Out of the r...
if you want all your emails to be handled by gmail, you should not need to configure an SMTP-server on your side (whether this is postfix, exim or whatever). the SMTP-error you get (550) indicates that the gmail-mailservers do not recognize the recipient address as being one of theirs. so i would double check whether ...
Do we need to configure postfix for using Google Apps gmail?
1,391,814,340,000
I am succeeding rewriting my subject line to have a [LIST] prepended to it: :0fhw * ^TO_[^<>@ ]+@example\.com\> * ^Subject:\/.+ | /usr/local/bin/formail -I"Subject: [LIST]$MATCH" This succeeds and turns: Subject: here is the subject line into Subject: [LIST] here is the subject line ButeI also want to insert the us...
Conceptually, the answer is simple: Copy $MATCH to another variable. The implementation will still be a bit scruffy because indeed you only get one MATCH per recipe. The workaround is to use nested recipes. :0 * ^Subject:\/.+ { subj=$MATCH :0 * ^TO_\/[^<>@ ]+@example\.com\> { user=$MATCH ...
In procmail, how can I manipulate a subject line with two MATCH variables?
1,391,814,340,000
Let me open by saying I have scoured the internet, even companies I purchased the software from and it's been 5 months!! So I am turning to the community as my eyes and brain are bleeding from reading and trying this long getting no where. In short, can this be done, YES. Apparently I am too stupid to do it, however a...
An alternative approach is to use an application forwarder. No iptables or kernel level forwarding is required. In this example I've used socat, but other possibilities may exist. Here the set of permitted source IP addresses is defined as an application argument. socat TCP-LISTEN:1025,fork,range=192.168.10.0/24,reuse...
Service only listens on 127.0.0.1 port 1025. How do you allow any computer on your local network to communicate with this service?
1,391,814,340,000
I am trying to add an extra header item to an existing email in a particular mbox, e.g. X-archived-to-crm: true,user,CRM-ID after it was archived, the CRM-ID is basically the id in the DB of the CRM. My MTA is sendmail, not sure whether this matters. I had a look mail, mailx but cannot figure out how to do it. I hav...
This can be done fairly easily with perl -i as an mbox file is just plain text. There are various mbox manipulation library modules for perl, but something as simple as this doesn't need them. The biggest difficulty is avoiding writing to the mbox file while something else is writing to it at the same time. The scri...
Any utility in Linux to add item to the header of an existing email in a particular mailbox?
1,391,814,340,000
I've been trying to set up a mail server, with dovecot, postfix, opendkim, and spamassassin. After some hassle I managed to get incoming mail working (I signed up for this account with the email!). However, outgoing mail just doesn't work--I tested this by sending from this new email to my old Protonmail account and g...
I finally fixed this by adding 192.168.86.0/24 to mynetworks. I've got another problem but I'll open up a new question for that.
Postfix: "Relay access denied"
1,391,814,340,000
Here is my scenario. I have a txt file. emailADD.txt. it contains email ids every line [email protected] [email protected] [email protected] And i have files in a folder abc.pdf def.pdf hij.pdf and so on i want a script to send email to the first id with the first attachment. then another email to second id with the...
I think it would be easier to start from looping through attachments and extract recipient along the way since shell will expand glob in an alphabetical order. Your script could look like this: #!/usr/bin/env sh line=1 for i in *.pdf do echo "$i" recipient="$(awk -v line="$line" 'NR==line' emailADD.txt)" ...
How to send emails to multiple recipients with each getting a different attachment using mail command from terminal?
1,391,814,340,000
When I'm attaching a file with Russian name, the recipient received the attachment with name noname. I added set rfc2047_parameters = yes to .muttrc, and it started to work for simple filenames like Решение.doc and тест тест.txt. But when I attach a file with a long filename: Электронный документ, полученный из внешне...
I believe that this is a known bug in older releases of mutt and that it was fixed in May 2019 with commit 6898c083. This means that the fix ought to have been included in release 1.12.1. I'm unable to reproduce your issue with release 2.0.3 (the current release at the time of writing), so I'm assuming that the fix is...
mutt attachment with long non-ASCII file name is set to "noname"
1,391,814,340,000
I am using systemd to autolaunch a service with the following script: (see below) I am trying to send an email before the service is started (the commented out line). the link at the end of the line /home/vincent/wintergreen/service_files/IB_restart_email is the content of the email, as described here in paragraph 7...
As documented in man systemd.service, systemd has a limited support for shell syntax, which does not include "<". So, the character is set to the "mail" command, resulting in this error. I presume you are most interested in emails due to automatic restarts, which wold be due to service crashes. For that, the OnFailure...
systemd, send an email after restart
1,391,814,340,000
Is there any way to send a custom e-mail to custom recipients if any user tries to login or login to my system (RHEL6.7) ??
There are multiple ways to achieve what you are looking for. I will list out two ways to do it. logwatch, a log-monitoring system that can send emails reporting any ssh activity. sudo yum install logwatch sudo cp /usr/share/logwatch/default.conf/logwatch.conf /etc/logwatch/conf/logwatch.conf sudo logwatch --service ...
Send mail on login for a host
1,391,814,340,000
Trying to design a system that can filter incoming email messages from a syslog server. Need to drop if they appear to be duplicates (throttle them). Procmail pipes them to a perl script for processing. That's all working, except if I get a flurry of emails all at once, postfix seems to spawn multiple instances of ...
You may use procmail's locking to make multiple instances execute one instance of the perl script at given time. See man procmailrc and man procmailex :0 w: script.lock | /.../script.pl O course there are other ways but How many messages per hour do you expect to process in peak and average hour?
postfix + procmail -- process serially, not in parallel
1,391,814,340,000
As part of smooth functioning on my application I want to check a count of a particular process and send a email to multiple people if it exceeds certain limit.I have written script for counting process but I dont know for the email part. Code for processes count #!/bin/sh NOP=`ps -ef | grep -I nagios.cfg | grep -v gr...
mail command is pretty simple: echo "More parent processes are running on the server" | mail -s "subject" [email protected] [email protected] And your script can be optimized to one line: [ "$(pgrep -c nagios.cfg)" -gt 2 ] && echo "More parent processes are running on the server" | mail -s "subject" [email protected]...
Count the number of processes and send a email to multiple people if it exceeds certain limit
1,391,814,340,000
I am planning to use my enterprise email address ( I am working at a company) as a medium for commands. And I want this to work on a linux box, I need by email to be registered there so that if an email comes it will be registered. Example: I will send an email with a subject: getsummary then at a linux box(linux os)...
I'd split you task into two steps: getting emails and parsing emails, because second step depends of first one, if you cannot get emails then you have nothing to parse. First step depends of MX records and ways you can access MX server. Since you have stated that email is enterprise, I assume that you cannot just chan...
How to set a linux box to receive emails using my email address [closed]
1,469,693,791,000
I have postfix running in a Docker container. A cronjob try to send email, but reply “(CRON) info (No MTA installed, discarding output)” error in the syslog According to this link, the solution is to install postfix so CRON can send email. I have postfix running on this Host, is there a way to use it ? I have some o...
The problem is not that postfix is not running but that it should be listening on a mapped port 25 or 587 on the host. Even if that is the case, with not installing postfix on the host, there is probably no installed that sends the mail (gotten from stdin or commandline parameters) to the port. You install the clie...
Tell guest OS to use my dockerized mail server to send email
1,469,693,791,000
I am writing a program that will be sending external emails using postfix with the mail -s command and I need to verify that the email was sent to the specified address. In which case, I am curious if postfix right away reports an error that I am able to get as a return code if email failed sending or if postfix will...
If your postfix configuration is set for logs you can check the logs for the status of a message. It will contain information such as: Mar 25 16:07:40 serverName postfix/smtp[3113]: B169ZZZ24F: host foo.net.mx1.name.foo.net[1.2.3.4] refused to talk to me: 421 Offline: HELO/FDNS Mar 25 16:07:40 serverName postfix/smtp...
Does postfix using mail command report if an email was unable to be sent to an address?
1,469,693,791,000
It seems that all emails I receive never make it to my actual inbox. They go to the root email. (in my case this is [email protected]) Here is my /var/log/maillog: Nov 10 19:43:43 mail postfix/submission/smtpd[12945]: warning: dict_nis_init: NIS domain name not set - NIS lookups disabled Nov 10 19:43:43 mail postfix/s...
See the warning in the error log: Nov 10 19:43:43 mail postfix/trivial-rewrite[12951]: warning: do not list domain dougbeney.com in BOTH mydestination and virtual_alias_domains That means exactly what it says. Don't do that. A domain can be either in mydestination or it can be a virtual domain in virtual_alias_do...
Every email that I receive gets sent to [email protected] (Postfix on CentOS)
1,469,693,791,000
I created a script to monitor and have a query as below :- httpUrl="http://some.website.ashx" balExp=$(curl -v -X POST -d "UID=test&PWD=2222" $httpUrl) How do I sent email alert (my email for example) if the query return nothing or times out? Update: I've modified the script to run the query if [ $balExp -eq 0 ] ...
Curl exit code for failed HTTP requests Usually if a requested HTTP resource isn’t available, a web server responds with a HTML document corresponding to the relevant HTTP status code, e.g. 404. In such cases, curl accepts this document from the server and since it was successful in getting a response from the web ser...
Send email depending on success of curl command
1,469,693,791,000
(AIX 6.1 ) man page for at says -m option could send an email to the user. But this is the default behavior, even without specifying the -m option. Is there a way to turn this off, I do not want mails sent to the user account. man page has no information. I tried +m but it is not accepted)
That is pretty simple and also explained in the man page of the at command The at command mails you all output from standard output and standard error for the scheduled commands, unless you redirect that output. It also writes the job number and the scheduled time to standard error. Same as for cron, simply re...
How to skip email notification for at command in AIX?
1,469,693,791,000
I'm really not into mail configuration, but somehow I managed to configure exim4 and it does send e-mails. I spent so many hours on it though I even can't count. (And I don't know why it is so complicated, while needs are usually very similar: to have e-mails addresses which should be used to actually send e-mails - a...
You need to tell mail the name you'd like to use (its currently looking it up in /etc/passwd, most likely). Of course, you could also change the user full name in /etc/passwd (e.g., via chfn -f 'New Name' user, and you really ought not be sending the mail as root! For Heirloom mail, you can use either the from environ...
Send emails with a custom From: field
1,469,693,791,000
I need a program that would be running as a daemon, connecting to mail server and reading inbox of a specified e-mail address (provided with password, of course =) ). If certain conditions are met, it'd execute a script - and there could be many different conditions with many different scripts =) Conditions could incl...
Sounds like you're looking for fetchmail in conjunction with procmail. Between the two of them, you should be able to solve all your automated mail-reading needs.
What program constantly reads e-mails and could execute actions under certain conditions?
1,469,693,791,000
I sent an e-mail which included almost 2500 characters of text and one attached 60KiB PNG file. This text included number 185 eight times. However, after the e-mail was encoded to base64 and sent, I'm able to find only three "MTg1"("MTg1" is "185" in base64 encoding) strings from e-mail source. How to explain this? Ac...
Base64 encoding turns 6 bytes into 8. There are 3 possible encodings for any given plaintext, shifted by several bits each time (and mixed with other encoded text, hence not trivial to find). >>> '185'.encode('base64') 'MTg1\n' >>> '\x00185'.encode('base64') 'ADE4NQ==\n' >>> '\x00\x00185'.encode('base64') 'AAAxODU=\n'...
base64 encoded e-mails and compression
1,469,693,791,000
I'm going to build an experimental mail server with Postfix + Dovecot and Mysql for user accounts. The server will offer SMTP + POP3 + IMAP. Is there a way to force users to change their mail account passwords every six months?
grep'ing through dovecot 2.1 source code it appears that they have a constant IMAP_RESP_CODE_EXPIRED used for the RFC 5530 "EXPIRED" code, which would be used to tell the client the password has expired. I see code to that notices expired accounts, and returns PASSDB_RESULT_PASS_EXPIRED from various different methods ...
Force users to change email password every six months
1,469,693,791,000
I have an email stored in plaintext (yes, headers, messages, attachments, everything in one plaintext file) and I'd like to extract a PDF document from it. I've copied the base64-encoded text, then ran it through base64 -d and catted it to a file. I then tried opening it up, which didn't work, and it doesn't appear li...
munpack seems like the tool you want.
Extracting a file attachment from an email message and saving it to a file?
1,469,693,791,000
is there a way via Postfix and or procmail for example or another software to forward e-mails from one inbox to another 2 inboxes where each message goes either to one inbox or the other based on content. Sometimes the message is multipart and the keyword is within the first part.
Procmail itself doesn't have any facility for looping over messages you have already received, but the companion formail utility to loop over messages in an mbox file; or, of course, if you are using a mailbox format like Maildir, you can simply loop over the files which contain those messages. for file in ~/Maildir/c...
Split messages from one inbox to another 2 inboxes based on content
1,469,693,791,000
Install a simple SMTP client: sudo apt install msmtp msmtp-mda Set in msmtprc :: cat .msmtprc account default host smtp.qq.com from [email protected] auth on tls on tls_certcheck off user [email protected] password xxxx logfile ~/.msmtp.log I can send email with qq account. echo "Testing msmtp " | mail -s "hi ro...
You've installed a simple forwarding mail server (msmtp). Here is the package description from Debian Package: msmtp (1.8.23-1) light SMTP client with support for server profiles msmtp is an SMTP client that can be used to send mails from Mutt and probably other MUAs (mail user agents). It forwards mails to an SMTP s...
How to make mail command to send email to root after installing msmtp?
1,469,693,791,000
Mutt is silently failing to send an email . There are no errors or failures. But sometimes the email is sent while other times it fails to send an email. This is how I am installing all the required installables/libraries in one task. sudo apt-get update sudo apt install snapd sudo snap install okular sudo apt install...
You're not sending an email with mutt in that example of yours, you're running mutt -v (which displays mutt's version and compilation details), and then you're running echo. If you want to send a message with mutt, you'd do it something like this: mutt -s "subject" [email protected] <<__EOF__ Hello All, Please find i...
Mutt silently fails to send an email from the ci/cd pipeline
1,469,693,791,000
I set up a new RHEL 8 server and it won't let me send email to a specific address. If I do: mail -s "Testing" [email protected] < /dev/null it fails and the logs show Dec 8 07:59:46 yln sendmail[2029791]: 2B8ExkYP2029791: from=administrator, size=220, class=0, nrcpts=1, msgid=<[email protected]>, relay=administrator...
Postfix thinks that the domain is local and is not trying to go out and query the record for it and send it to Google's Mail Servers. Open Postfix's main.cf config file and look for the following line: mydestination = $mydomain, localhost.$mydomain, localhost Remove $mydomain and restart postfix service postfix resta...
Server won't send email to specific address