date
int64
1,220B
1,719B
question_description
stringlengths
28
29.9k
accepted_answer
stringlengths
12
26.4k
question_title
stringlengths
14
159
1,469,693,791,000
I want to reject email from certain senders (ie, the MAIL FROM sender) whose domain appears in a type:table map if the transport is not via STARTTLS. So if [email protected] sends an email then I want it to reject unless it us running within STARTTLS, but the rest of the internet can still send non-TLS email if they...
This is perhaps possible via "Postfix SMTP Access Policy Delegation" with Postfix version 2.3 or later; a daemon would check that the encryption_protocol sufficies (exists?) for sender whose domain belongs to to some list (or is in some database table, if there are a lot of them). (A milter interface, if the TLS infor...
Can Postfix require TLS per-domain for inbound _and_ outbound addresses (or IPs)?
1,469,693,791,000
I am in the process of trying to upload around 20 years worth of Usenet archives to archive.org but my first batch got reject because some of the archives contained trojans that are encoded in base64. Since I have around 400GB of files to work with, fixing things manually is out of the question. All of the files are i...
The mutt mail user agent (MUA) can delete messages from a mailbox by MIME type. You can even script this. A message that has an encoded attachment can be matched in mutt with the search expression ~M application. This matches any message that contains a MIME type containing the string application, usually indicating ...
Remove all base64 blocks from a file
1,469,693,791,000
I'm using msmtp to deliver system email from an Ubuntu server via an SMTP account. Can I somehow configure this setup to rewrite all emails to one specific recipient address? If so, how? Or put differently, I don't want any arbitrary PHP script or otherwise to be able to send email to anybody that is not me. I should ...
I don't think this is possible with msmtp. From the man page (emphasis mine) Msmtp transmits mails unaltered to the SMTP server, with the following exceptions: The Bcc header(s) will be removed. This behavior can be changed with the remove_bcc_headers command and --remove-bcc-headers option. A From he...
Can msmtp rewrite *all* recipient addresses?
1,469,693,791,000
OS = debian stretch mate desktop with claws-mail --version Claws Mail version 3.14.1 Is there a way to create an account for system mails so I can get them in claws-mail (like for apt-listchanges) over exim4?
Check /etc/aliases file. In standard configuration email to all system accounts is redirected to root emai to root is redirected to non privileged OS account.
claws mail how to get system mails over exim4
1,469,693,791,000
I am running /usr/sbin/logwatch and it prints it output to stdout. Why if MailTo parameter is set in config file. If I do /usr/sbin/logwatch --mailto MYEMAIL it works, but why? What is the purpose of MailTo config parameter then?
The purpose that MailTo parameter is set on the configuration file is to serve for the daemon itself, for example to send log reports periodically.
How to run logwatch and tell to email me manually?
1,469,693,791,000
I’m stuck on a basic dns issue here "I think". I can send email but unable to receive. What I want to achieve is host webfiles of my webpage on 184.69.151.38 and use smtp ip from 193.47.34.77. I think my A records might be wrong. What is happening is mxtoolbox is picking up as the email server as 184.69.151.38 but th...
When you tell mxtoolbox to "Test Email Server" named jessemacdougall.com, it does exactly what you told it to do. You're not testing "the mail server of domain jessemacdougall.com" - you are testing whether server jessemacdougall.com can successfully receive mail. And if you use the "DNS Lookup" function, the only act...
A Record Configuration: Host Content on Webserver IP and Smtp IP From Another Server
1,469,693,791,000
Hello I want make my website able to do simple function as sending email to any email address I want. I know how to do it in webiste host within my PC and there are plenty instructions, However if i want to do the same thing wihin website host within raspberry pi is there any different? it's pretty hard to find some a...
Before I start, a word of caution: Setting this up insecurely not only can, but almost certainly will wind up with your website being used to send a flood of spam until your IP address is banned -- and the way you've phrased your question doesn't suggest you understand the issues enough to avoid this. Whatever you're...
Sending email from website hosting within raspberry pi
1,469,693,791,000
Classic email setup: [REAL-MAIL-SERVER] [IMAP/POP3 >] ---------> [EMAIL-CLIENT] [Storage] Is there any server application (open source) that would permit to store emails and act like a rely/proxy between the client and the mail server ? [REAL-MAIL-SERVER] [PROXY-RELY-SERVER] [IMAP/...
I assume everything is captured by the 'proxy-rely-server' (as you named it) serving all clients (the easy way) and it's the common client. You probably need a couple of MRA and MDA installed on your 'proxy-rely-server'. The MDA will act as POP/IMAP server (for local use + other clients). The MRA (some kind of special...
Is there any IMAP/POP3 rely and archiving server application?
1,469,693,791,000
I am trying to configure configure sendmail to use a relay. I've tried several procedures, but I don't know why it doesn't work since the same relay is used by other services and it works. Below is the installation procedure I am using. What can I do to diagnose what happens? What could be wrong? Thanks! Installation...
The error... "550 5.7.1 Envio nao autorizado - Verifique o MX e/ou SPF do seu dominio" (portuguese)/"550 5.7.1 Unauthorized sending - Check your domain's MX and/or SPF" (english) ... happens because the SMTP service in use by us requires that the "envelope sender" be the same as the effective "sender". To addres...
sendmail - sendmail using relay (Why it doesn't work?)
1,469,693,791,000
I'm trying to: Attach multiple files into one email. Have the email sent out using a Gmail account with the current date and time in the subject header. I'm having trouble with the for a loop since I don't want to create multiple emails I just one to create one email with all the attachments included and have the ...
Here's a bash script that might help others out that I got to work. #!/bin/bash currentdir="$(pwd)" #get current directory fn_dt_now_start=`date '+%Y_%m_%d__%H_%M_%S'`; #use to generate date time fn_txt=$(ls $currentdir/*.txt) #place txt files found into a variable for t in ${fn_txt[@]}; do ...
Attaching multiple files using bash and emailing it out using SWAKS or another program
1,469,693,791,000
I've recently configured new .procmailrc and .forward files to work with our Postfix mail server. I've tested it with new Emails, and the new .procmailrc is properly filtering and forwarding as desired. Now I would like to somehow re-process the entire contents of my /var/spool/mail/***username*** file using the new ...
procmail comes with another program called formail which can be used to process an existing mbox. You can use that to pipe your mailbox back into procmail. To avoid race-conditions with newly arriving mail, I'd rename the spool mbox before processing it. For example: mv /var/spool/mail/username /var/spool/mail/usern...
Invoke procmail on spool file using new .procmailrc?
1,469,693,791,000
Mails from my account are fetched using the POP3 protocol using the mutt email client. Will it is desired that mutt downloads the (new) mails (for having them available offline), those mails shall not be deleted from the mailserver, for the simple reason that I fetch my mail using two different machines and having it ...
POP3 isn’t ideally suited for this kind of usage, IMAP would be much better. However, if your POP3 server supported the necessary commands, Mutt can be configured to keep mail on the server and only download new messages: unset pop_delete will tell Mutt to keep messages on the server, and set pop_last will tell Mutt...
Tell mutt email client to leave mails on server and _not_ download them again next time?
1,469,693,791,000
I would like to purchase a VPS and a domain to run my Rails web application on Ubuntu 18.04 LTS. I will send transactional emails using Sendinblue to allow users to activate their account. With regard to server administration, I planned to install services like Fail2ban, OSSEC and rkhunter and configure them to send n...
I don't know Sendinblue, but in general you'd be blackholed only if you set up your own mail service without necessary certificates. If you use an outer mail account, the things go smoother. If your post sender is able to log into the outer mail service (e.g. Gmail), then you don't need any local mail service. As for ...
Receiving emails from local services
1,469,693,791,000
I'm new to bash scripting and I've read tons of manuals for programs like mutt, procmail, ripmime, and such and still have no clue how to this script or even use these programms properly. If someone could help me out with that, that'd be great.
If you want to download mail (e.g. from a remote imap or pop mail server), you need to use a program such as fetchmail or getmail. Both of these are available as packages for Ubuntu, so can be installed with apt. These programs can be configured to connect to your remote mail server(s), authenticate with your usernam...
Creating bash script for auto-mailfetching and extraction to a specific location
1,469,693,791,000
I need to understand how postgrey keeps track of inbound mail. I know the concept of how greylisting works, but I'm wondering about the actual method. Greylisting will count the number of times a mail server has sent through a message succesfully over a given period of time and if it reaches the desired threshold, it ...
Summarising the behaviour: the check is made against IP address+sender+receiver. The connection states are kept in a Berkeley DB. When connection arrives: if it part of a defined whitelist it is accepted; if not in the DB, it is added to the DB and the connection is rejected; if in the DB: if it is the first ret...
How does postgrey track inbound mail
1,557,493,455,000
I installed Roundcube on a Debian server running Dovecot, Postfix, mySQL for mail, and postfixadmin. Then I installed Roundcube. I have another server with the same configuration. I can send and receive using IMAP/SMTP with Thunderbird. But when I connect using the Roundcube client I get the error: Connection to stor...
Roundcube uses IMAP to interact with the mailstore, check that the server running roundcube can connect to the server running IMAP (this is probably localhost) Possibly the IMAP server is not available on localhost (::1) but is on "ipv4 localhost" aka 127.0.0.1
Roundcube Error: Connection to storage server failed
1,557,493,455,000
I have some cron tasks, and some of them doesn't stop sending me emails. An example task are: */2 * * * * php app/console mautic:email:fetch > /dev/null 2>&1 (All the tasks with the problem are mautic tasks). I've tried some tricks for avoiding emails: > /dev/null >/dev/null >/dev/null 2>...
The /bin/sh: 1: cannot create 1: Permission denied error is probably because you have a typo in a redirection. Perhaps instead of 2>&1 you have 2>1 or 2>1&. (Normally the attempt to create a file named 1 in your home directory would succeed, but if a file named 1 already exists and is not writable then you'll get th...
Why cron doesn't stop sending emails even redirecting to /dev/null
1,557,493,455,000
I've currently got Neo/Mutt configured alongside iSync for a few different accounts. Everything syncs up and I've got the Mutt client configured roughly how I want it. However, I run into issues when using <save-message> to move a message to an Archive folder. It's different depending on the type of account: In my tw...
I figured out how to get this working with the ProtonMail account. It turns out it is possible to save-message directly to an IMAP directory. However, while mbsync was interfacing with the ProtonMail Bridge's IMAP just fine, NeoMutt would get stuck on "Logging in..." While trying to debug the overall issue, I had a lo...
Mixing local and remote IMAP folders in Neo/Mutt and iSync?
1,557,493,455,000
The /var/spool/mail/root file was deleted by accident; I need to recover it. Is there any link related to this file or how this file got updated which script responsible for it?
The file /var/spool/mail/root typically contains locally delivered email for the root user. For example, echo hello, world | mail -s 'kandr test' root If you don't have a backup then you have lost your local email for this user account. (If you didn't ever read it then consider it a safe loss.) Don't try to recreate ...
/var/spool/mail/root file deleted by accident
1,557,493,455,000
When I install Postfix as a mail server to transfer emails from my Content Management System's contact-forms, into my Gmail account, I choose the option internet-site. After I choose that option Postfix asks me to insert the domain of my site. But what I have 2 or more sites instead just one? What domain should I inse...
The list of choices is not a standard Postfix feature; it's probably the result of the package management system of your Linux distribution. Perhaps Ubuntu, or some other Debian-related distribution? If I'm correct, you should treat the option dialog as an "easy first installation wizard" only. For a non-trivial confi...
Why does Posfix “limits” me to use only one domain under “internet-site”?
1,557,493,455,000
Do I need port 993 unfiltered to get emails from a WordPress site? For example, in WordPress I've installed a plugin called "Contact form 7" (CF7) that gives you a basic contact form. In the plugin settings you can insert your email (say, [email protected]) and messages left in your WordPress CF7 contact form will be ...
You most likely won't need it. Port 993 is related to IMAP, which implies email clients (mutt, thunderbird, ...) connecting to their mailboxes on your server. Assuming from your question, you're looking to setup a smtp relay, hence do not need to allow in traffic for potential clients - and probably won't have a servi...
Do I need port 993 to get email in a WordPress site?
1,557,493,455,000
I re-installed a fresh clean Debian 8 on my VPS. All is set up to default values. dpkg -s exim4 and dpkg -s postfix says that exim is not installed, and that postfix is installed. This is confirmed by lsof -i :25 which shows a PID 478, then ps p 478 shows 478 ? Ss 0:00 /usr/lib/postfix/master. I haven't don...
This line contains the useful information that you need Nov 22 11:57:32 blah postfix/smtpd[10485]: NOQUEUE: reject: RCPT from mail-ua0-f171.google.com[209.85.xxx.xxx]: 454 4.7.1 <[email protected]>: Relay access denied; from=<[email protected]> to=<[email protected] ... What this is telling you is that your machin...
Receiving email on a fresh new Debian
1,557,493,455,000
I am on ubuntu 16.04.I have sent email to suggest business proposal.What I got in my gmail inbox was something like this Your message couldn't be delivered to [email protected] because the remote server is misconfigured. See the technical details below for more information. Then Final-Recipient: rfc822; [email prote...
If you try to send email via remote public email server: I think you have problem with local email client. Perhaps you forget to type login and password and you client try to send email without authentication. Remote email server think that you are trying to use it as open relay and prevent this action. If you are us...
550 relay not permitted [closed]
1,557,493,455,000
I know you can add the alias of an ID in email server, but is that alias configurable too? Let's say I have an ID: [email protected] with Pass: original pass I created an alias: [email protected] Can I configure [email protected] with the Pass of original ID? Pass: originalpass
Aliases don't have passwords - think of them as pointers. When the mail server receives a message for alias@example it will internally look up that it is supposed to be delivered to original@example The only account that exists is original@example and it is the only one that can be used to authenticate, retrieve mail...
Configure email alias
1,557,493,455,000
Postfix is running. I am trying to send maldet report as a mail but it gives me an error I don't know why? [root@do ~]# maldet --report 170321-0115.21534 [email protected] Linux Malware Detect v1.6 (C) 2002-2017, R-fx Networks <[email protected]> (C) 2017, Ryan MacDonald <[email protected]> Th...
The variable $mail is empty because the command mail is not installed. Run apt-get install mailx (debian or ubuntu) or yum install -y mailx (centos or redhat)
Why maldet is not sending report as a mail?
1,557,493,455,000
I can't find any information about the status of IMAP version 4 and how widely it's used nowadays and how widely other versions, 1, 2 and 3 are used. So is IMAP version 4 common these days? What about other the versions 1, 2 and 3?
Restricting this to the commonly used Linux servers: Courier Cyrus Dovecot They all support IMAP4, since the IMAP4rev1 RFC was defined more than 10 years ago, I don't think you'll find the older version still being used.
IMAP -- what are the most popular versions used these days?
1,557,493,455,000
Good Day, I'm still new in Linux CLI and I'm using RHEL 6. I'm executing command for sending email via terminal. $ cat log.txt | mail -s "Logs" [email protected] Hosted by outlook365 When I try this command, nothing happens. No errors but nothing happens. Any tips? Thank you.
Check the /var/log/maillog to see the logs related to the email being sent. Are the logs logging any errors?
Executing command for sendmail not working
1,557,493,455,000
Suppose I have a file BOD which contains lines of text and a file ADDR which contains e-mail addresses. How can I send the first line of BOD to the first address in ADDR, the second line of BODIES to the second line in ADDR, ... until the last line? I know that you can send a mail in the shell using TEXT | mail ADDRES...
Using the following variables, text_file="$1" mail_file="$2" lines_in_text=$( cat "$text_file" | wc -l ) lines_in_addr=$( cat "$mail_file" | wc -l ) line_num=1 You can write the following routine: send_mail() { while [[ "$line_num" -le "$lines_in_text" ]]; do text_line=$( sed -n "${line_num}p" "$text_fi...
Send Nth line of text to Nth address in the list
1,557,493,455,000
I followed the following guide on how to setup sendmail to use a remote SMTP server and authenticate: https://www.smtp2go.com/docs/sendmail/ However, sendmail shows that it sends emails out, but debug shows that it connects to localhost and not the remote host. I execute the following command to send emails: sendmail...
Sendmail-8.12+: Non set root uid installation => sending via 127.0.0.1:25 "Sendmail by sendmail.org" before sendmail-8.12 used to be installed as set root uid program. It had used to create endless security problems. Sendmail-8.12 to avoid such security risks passes messages to sendmail daemon running as root and lis...
Cannot make sendmail to use a remote SMTP server [closed]
1,557,493,455,000
Background and Current Situation I inherited a CentOS 5.7 box running Mailman 2.1.9 housing a series of legacy mailing lists. I've been working on moving these lists to other services like Exchange mailing lists and have simply been aliasing the mailing list on the current mailman box to the new Exchange list which is...
Your question is hazy on the details, and I have a bad feeling you are making the whole thing more complex than it needs to be (do you really need to rename the mailing lists? What is it about Exchange that makes it not worse?) but to attempt to answer your concrete question, you should be able to add a second destina...
Auto-Reply to Messages Sent to Mailing List
1,557,493,455,000
I am trying to secure connections to my MySQL server. I have SSL set up but I am looking for programs that support a SSL connection to MySQL. Specifically I am currently looking for an email server that supports it. I am coming from a Windows environment and I was using hMailServer (which doesn't look like it supports...
As far as all your services are located on the same host you really do not need any SSL encryption between services. Just restrict internal services to the localhost - that is all. In term of MySQL you have to modify my.cnf: . . . . . . [mysqld] bind-address = 127.0.0.1 port = 3306 socket = /tmp/mysql.so...
Looking for an email server that supports mysql ssl connection
1,557,493,455,000
How do I find all the scripts that have mail sitting in my postfix mail queue? This server is sending out spam and I've spot checked it, but I want to make sure I haven't missed any scripts that may be included. PHP is configured to place the X-PHP-Originating-Script header in each email. If I can iterate over each em...
This oneliner gathers the mailq output (I often pipe that to a file and then run the script against the file so I can tweak it with less performance impact). Then it cuts out only the mail ID first by using the cut command to identify the proper field and then using egrep to clean that up (removing empty lines, irrele...
Find all the PHP scripts with email in my postfix mail queue
1,557,493,455,000
I need to send an email from my Ubuntu 12.04 machine. I am using mailx command to do that. Below is the command I am using which works fine. echo "Test server started at `date +"%F %T"` on `hostname -f`" | mailx -r "[email protected]" -s "Test Email" "[email protected]" But when I get an email, I see in my From secti...
I believe mailutils doesn't support the -r option. Replace it with the heirloom-mailx package which does support the -r option (or use sendmail -r [or -f]). http://manpages.ubuntu.com/manpages/lucid/man1/mail.1.html -p, -r, --print, --read print all mail to standard output Install: sudo apt-get insta...
How to send an email using mailx so that From and To appear correctly in the email?
1,557,493,455,000
I have a Raspberry Pi with Raspian installed on it and I am experiencing troubles sending out emails. I have installed SSMTP and usually inside my scripts I'm sending out emails to notify me when a job is completed: echo "$(date) Job completed" | mail -s "My subject" [email protected] Everything was working fine unti...
authenticating ID must match your sending address. The server mysite.smtp.com: (or more specifically, the MTA its running) rejects your mail, because you authenticate as one user (myUser), but send a mail as another user.
SSMTP returns error 550
1,557,493,455,000
I am using uuencode with mailx to attach a zip file. In following code, the if block works perfectly and I get Deletions.zip as an attachment in the email. But, whenever the else block is executed I don't get the attachment but the binary code in the email body instead. Code (Perl code invoking linux commands): open(E...
It looks like the causing problem is being caused during looping of while cat /test/emailbody.txt; Remove the "," while printing in file. Following line of code has this problem: push @dzones, "No files have more than 20% deletions.\n\nPlease see attached for the deletions in different zones.\n\nThanks, Vishal\n\n";
Uuencode displaying attachment content in email body
1,557,493,455,000
As someone who had no experience dealing with Unix or Linux before about 6 months ago, I'm feeling pretty comfortable with managing a Linux server now. The one question I do have is about DenyHosts, and how it's sending out reports. Firstly, I get about 3 to 4 DenyHosts reports a day. My first question is, is it reall...
Re: "brute-forcing my server": You can take a look at what sshd is logging, usually somewhere below /var/log. After that you might have trouble sleeping for a while... Re: "flood of emails": You might want to look into handling emails locally, i.e. on the server. There are tools like "procmail" around which can be con...
How can I reduce the volume of DenyHosts emails?
1,400,099,355,000
I need to manually be able to interact (check, remove, etc) with the postfix mail queue (through scripts and what-not). I know that this generally is a bad idea; so how can I interact with the queue without screwing things up? I believe one possible solution is to shutdown postfix, do work on the queue, and then start...
You have two commands: postqueue and postsuper. Check man page for this commands.
Manually interacting with postfix mail queue
1,400,099,355,000
We have two domains. One of which is isolated. We're trying to forward mail from one domain, through a DMZ to a relay on the other domain. Using EHLO through telnet works. Using the mail command and specifying the relay works: mail -S smtp=myrelay.com -s test [email protected] Sendmail does not work though but claims...
A "name server timeout" indicates that the name "mycompany.com" can not resolve. What happens if you do a ping mycompany.com (NOTE: Because of MX records, a failed ping does not mean it's impossible for mail to go there) While not quite the same as doing a ping text, what does host mycompany.com give you? Some other u...
Sendmail relay to dmz to another relay
1,400,099,355,000
I'm currently experimenting with working with Outlook.com for an email server, and have MX records set up to point there and the like. How can I configure systems like postfix to use external servers for mail? When I try to use functions like PHP's mail() for example, the server logs return this line, obviously becaus...
For Postfix, you need to set relayhost in your configuration, and some other options as well. There are many articles online explaining how to do this, for example this one. Might it be easier to run a mail server right off of the VPS I'm hosting my website on, so that everything stays local? I don't think that woul...
Sending mail to an external server?
1,400,099,355,000
At the moment, I have a RHEL6 monitoring server that sends out emails with postfix. Originally it was sending them out as [email protected]. I've used the mapping file /etc/postfix/generic to get the emails sent out now as [email protected], however when the email client receives the email, there is no longer a name a...
Turns out the GECOS field needs to be filled in for the original user, not the user that the emails are being masqueraded to appear to be from.
Postfix Masquarade Name *and* Email address
1,400,099,355,000
We have a domain for a web site and e-mail that's hosted off-site. (We don't have a reliable enough connection to host it ourselves.) Our shared host sometimes has SMTP problems, but never POP problems. Is it possible to set up an e-mail server on CentOS 6.4 that will work internally (i.e. sending between e-mail addr...
There are several possible solutions to this problem, and they're all fairly complex. This is the most transparent configuration I could think of, but honestly I would switch hosts if their SMTP service is unreliable. There are a lot of good, cheap providers of mail services. Also, consider using IMAP instead of POP3,...
SMTP/POP server only for internal e-mails on hosted domain
1,400,099,355,000
I've just installed the 'mail' command in Ubuntu (mailutils package) in order to view feedback from cron jobs. I type 'mail' at the prompt and see something like this: "/var/mail/*$USER*": 1 message 1 unread >U 1 *Name* *Date* Output from your job I type 1 at the ? prompt and get a lot of output about the message (F...
The mail program opens emails in a pager. The environment variable PAGER can override the default pager, which is typically less. In Debian-based systems, there is a /usr/bin/pager that is managed by the alternatives system. You need to ensure that your pager is not a GUI application, which would require X. An easy wa...
Linux 'mail' command: Can't open display
1,400,099,355,000
I have created a ipset with a bunch of IPs that I want to block access to dovecot and exim. The ipset is called "bannedIPs" and have been added to iptables using this iptables -A INPUT -p tcp --dport 25 -m set --set bannedIPs src -j DROP iptables -A INPUT -p tcp --dport 587 -m set --set bannedIPs src -j DROP iptables ...
Yes, and no. You didn't tell us what service you are running, imap(s) or pop, smtp(s) etc., and if it's all using the default port. But, to verify that you've collected all necessary ports, run i.e netstat -luantp to get a list of listening ports. Then compare the list of ports against it. Also, consider put these rul...
IP set to block access to exim and dovecot
1,400,099,355,000
I have a following setup: 1 postfix server: a.example.com that needs to accept all emails for any subdomain on example.com (*@*.example.com) and delivers to mailman account and also send emails to any email account (gmail, yahoo, etc) including *@example.com. 1 hosted exchange: exch11.hosted.com for example.com email...
First of all i am not sure if this will work but i hope it will help get you started: Remove example.com from mydomains as this postfix instance does not handle the mail for it directly. Add virtual_alias_domains = .example.com this should solve your subdomain issue Add relay_domains = example.com and specify an expl...
Postfix Configuration - different servers for subdomains and domain
1,400,099,355,000
I'm trying to send cron output to an email address and am struggling... I'm running the following command: 13 15 * * 1-5 root /path/to/mysql-backup.sh 2>&1 | mail -s "Daily Database Backup Report" [email protected] That shows this error within /var/mail/root /usr/bin/mail: line 1: syntax error near unexpected token `...
In my experience, /usr/bin/mail is a binary executable, but on your system the shell seems to be loading and interpreting it. syntax error near unexpected token is a bash diagnostic. This can happen if you have overwritten an executable. Is there any conceivable chance that you have overwritten /usr/bin/mail with the ...
Sending cron output to email?
1,400,099,355,000
After syncing my local maildir inboxes with offlineimap and performing spam filtering and sorting using fdm+bogofilter, I tag the messages in the mail store using notmuch. Up until recently, I used the following shell code to tag and re-tag messages depending on certain criteria: notmuch new tr -s '\t' ' ' <<'END_BAT...
This seems to happen because notmuch is a bit too pedantic about what message files should go in what Maildir subdirectory, and because offlineimap is a bit too relaxed about the same thing. The offlineimap utility delivers mail messages into the target Maildir's new directory, as expected, but the filenames have a :2...
Tagging mail with "notmuch" marks them as old
1,400,099,355,000
#!/bin/bash df -m > myfile server_ip_address=$(ip addr show $(ip route | awk '/default/ { print $5 }') | grep "inet" | head -n 1 | awk '/inet/ {print $2}' | cut -d'/' -f1) if awk '$2 > 10000 && $5 > 90' myfile ; then echo "Disk Full in $server_ip_address" else echo "Nothing wrong with the server" fi When I ...
Problem in my current code is that the output of df -H is not always in GB The answer here is not to use -H. As documented in man df it is intended as "human readable output" and the unit intentionally can vary. Instead use a fixed unit: either the default KB or maybe MB (-m). You may also want to read up about Nagi...
Script to send an alert mail once the disk space is above 90% sends disk full even when the disk isn't full, how to resolve this issue?
1,690,930,939,000
I recently attempted to install iRedMail on a container running Ubuntu 20.04 on my Proxmox server in my home lab. Everything apart the port 25 is working perfectly (updates, remote connection, remote access…). The installation was successful, but I noticed that outbound port 25 was timing out. Here's the output of my ...
If all the information you've provided is correct then it is unlikely to be an issue with the PVE host. I also tried to run the same Telnet command on another server within the same network, and it worked I think you mean you tried from another host. If this is using the same uplink as Proxmox then it suffices to ru...
Outbound port 25 server issue
1,690,930,939,000
I have requirement to rewrite a single recipient address. Not just aliasing, because the email To: lines has to be changed. I.e.,. I tried adding this to sendmail.mc: FEATURE(`genericstable')dnl GENERICS_DOMAIN_FILE(`/etc/mail/genericsdomain') Then I add the following to /etc/mail/genericstable, in order that [em...
Sendmail: Rewriting selected header recipient addresses See FEATURE(genericstable) - Remark about FEATURE(allmasquerade) is crucial in your case.
Can Sendmail rewrite a specific To: address, so that a different email shows up in the To line?
1,690,930,939,000
Following is my shell script which I am running on Ubuntu 20.04 as pipeline task. echo "line1" sudo apt-get update echo "line2" sudo apt install snapd echo "line3" #sudo apt-get install -y xpdf sudo snap install okular echo "line4" sudo apt install mailutils echo "line5" sudo apt install mutt However, I am getting fa...
According to your logs, mailutils and mutt were installed correctly, but your pipeline treats any output to standard error as an error, and apt is writing its warning there: WARNING: apt does not have a stable CLI interface. Use with caution in scripts. To avoid problems, use apt-get instead: sudo apt-get update sud...
Failures while setting up mutt on Ubuntu 20.04
1,690,930,939,000
Im running Debian 11 with Postfix 3.5.17 and I'm having trouble restricting the domains that clients can relay mail to (mail from submission). I've configured relay_domains to only be the specific domains I want mail relayed to, but if I send a test message to domain.com, the logs show its connecting to it, despite it...
The order of restrictions matters, the first matching rule wins. Because you have permit_mynetworks before any other restrictions, that allows hosts on your local networks to relay to anywhere. Similarly, you have permit_sasl_authenticated as the second restriction, which allows authenticated clients to relay to any ...
Postfix deny all relay domain destinations except for relay_domains
1,690,930,939,000
As root, I installed ssmtp and I configured the /etc/ssmtp/ssmtp.conf as follows: # Sender email address [email protected] # Destination SMTP server and port mailhub=mail.domain.com:587 # Username and password [email protected] AuthPass=password # Sender domain rewriteDomain=domain.com # Machine's hostname hostnam...
You have inverted the meaning of FromLineOverride. Here with it set to yes you are declaring that the sender is allowed to override the settings defined in ssmtp.conf, and this is why the sender is ending up as root. Switch that setting off (no) and you should be good to go.
crontab error - SSMTP - 553 5.7.1 Sender address rejected: not owned by user
1,690,930,939,000
I have a job that picks up CSV files and sends them through an external mail service. Everything seems to be great, with one exception: I found that the windows style CRLF CSV files get mangled by the process and when I open them in a mail client, they have 3 0x0A characters at the end of each line. I thought it wou...
I found that mac/unix line endings are not getting mangled, and have switched to that for those that can take it. The author posted this to his mailing list in response to my question, the patch should be widely available about 3 months from now: I today have implemented such a thing, but it will require v14.10 (hope...
How to force base64 encoding for s-nail attachments?
1,690,930,939,000
How do I specify a default sender 'from:' address in postfix config for emails through smtp? I'm trying to send emails through SMTP and a relay from two different servers with Oracle Linux 8 The problem is that on one server when you send an email without the '-r' option to specify a sender it doesn't work returning t...
There are many versions of the mail program, including GNU mailutils and bsd-mailx. As mail on server2 seems to work correctly, make sure that server1 has the same version as server2. Use /usr/sbin/sendmail instead of mail to send your message. You're using postfix on both machines, and postfix's sendmail command u...
Oracle Linux postfix conf SMTP - Default sender 'from' issue
1,690,930,939,000
I have a VPS running CentOS that hosts a few websites with email. It's recently come to my attention that outgoing emails to @comcast.net addresses are not delivering. I've observed that these emails are stuck in the queue for days before bouncing, so it's not a temporary outage. -I confirmed the bounces happening t...
The request from the IP or IP range may be dropped by their firewall - assuming that these MX are up and running. Just try to reach them from the shell of the VM and your localhost - if only one of them can reach these, it is save to assume that.
Postfix can send to everywhere except Comcast?
1,690,930,939,000
In mbox format, each email begins with a "From_" line that contains an "envelope sender address" and timestamp. For example: From [email protected] Fri Jun 23 02:56:55 2000 How is the address and timestamp in the "From_" line different from the address and date in the "From:" and "Date:" email headers?
The From_ line contains the details as received by the SMTP daemon. In particular, the email address is whatever the remote sender provided in the MAIL FROM stage of the SMTP session (this may or may not be the same as what is in the message headers - e.g. it may be a mailing list's bounce address, while the header F...
mbox: Difference between "From_" line and the "From:" and "Date:" email headers
1,690,930,939,000
On AIX, I want the mail program to use /root/.mbox instead of default /root/mbox. I edit mailrc vim .mailrc set MBOX=/root/.mbox the result is not good mail Mail [5.2 UCB] [AIX 5.X] Type ? for help. "/var/spool/mail/root": 2 messages 2 unread >U 1 root Tue Jun 22 01:48 13/349 U 2 root T...
Solution found, instead of use this method, valid on old Unix os like Sco Unix System V myname@scosysv:/usr/myname$ vi .mailrc ".mailrc" 1 line, 19 characters set MBOX=/usr/myname/.mbox myname@scosysv:/usr/myname$ echo hello|mail myname myname@scosysv:/usr/myname$ mail SCO System V Mail (version 3.2) Type ? for h...
Aix: why program mail ignore the mbox setting?
1,618,299,897,000
Say I have a PHP file with the following code line: $to = "example-1_2@example-1_2.com"; I want to change only the email address between the two double quote marks to say [email protected]). I have tried this which failed: read new_email_address sed -i 's/^[a-zA-Z0-9-_]*$@^[a-zA-Z0-9-_]*$.^[a-z]*$/"${new_email_addres...
Just a brief comment about the updated sed command in your question, which currently reads sed -i 's/^[a-zA-Z0-9-_]*$@^[a-zA-Z0-9-_]*$.^[a-z]*$/"${new_email_address}"/g' FILE Notice that this contains two invalid character ranges (both read 0-9-_) and that the variable new_email_address would not be expanded by the s...
How to change an email address to another directly inside a file?
1,618,299,897,000
I'm running the latest Claws-Mail (v3.17.6) on Arch Linux and downloaded the latest hunspell-en_CA package (v2019.10.06). When I go to 'Configuration > Preferences > Spell Checking' the 'Default Dictionary' drop down has nothing in it. I found the hunspell dictionary files are located in '/usr/share/hunspell/'. Is Cla...
I did everything that I could think of to get the new hunspell-en_CA package working with Claws-Mail. Nothing worked, but I did find that if you ditch the hunspell-en_CA package and load the aspell-en package everything will magically start to work. No need to run ./configure or anything... Just restart the applicatio...
Claws-Mail Spell Checker Not Finding hunspell-en_CA
1,618,299,897,000
I am setting up smtp to sent mails via terminal and getting "non-zero" status. In my log files there is a log about "Unable to set AuthPassword" password contains characters and numbers. ssmtp.conf: 1 # 2 # Config file for sSMTP sendmail 3 # 4 # The person who gets all mail for userids < 1000 5 # Make this empty ...
From the man page for ssmtp.conf: AuthPass The password to use for SMTP AUTH. You've configured ssmtp.conf with AuthPassword, which it doesn't appear to be expecting. Try it with the flag from the man page. You should also redact passwords, at least in my opinion, when posting questions!
"Unable to set AuthPassword" ssmtp
1,618,299,897,000
I am running a website on two AWS EC2 instances running Ubuntu. I am using LAMP. The following PHP code used to successfully send emails, to warn of suspicious activity, but stopped doing so in January 2020. <?php // Function to email notification of suspicious entry function emailPossibleSQLInjectionNotifi...
It was due to a change that AWS made. I fixed the problem as follows. Installed, and set up Postfix as outlined here. Edited AWS EC2 instance filter to allow SMTP on port 587. Edited /etc/postfix/main.cf to include relayhost = [email-smtp.us-east-1.amazonaws.com]:587. sudo postfix reload
Mail sent, from PHP script,not showing up
1,618,299,897,000
We have inherited a RHEL server and it is continually trying to send e-mails to defunct email aliases. Is there any way of finding out what program is sending the emails?
Look into the contents of e-mails. If they are sent to defunct aliases, they should be stuck in queue. RHEL usually uses sendmail, so queued e-mails should be in /var/spool/mqueue/. Look for the content of files there. That should give you a clue, what is sending them. There can be many programs that can send e-mails....
How do I find what program is sending an email from a linux server
1,618,299,897,000
How can I print Mutt Mail User Agent Inbox list in a text file? That's my problem: I need to print the Inbox files list, which have are with the following set: set index_format="%4C %Z %{%d/%m/%y %H:%M} %s" That way I need to print them in a text file, with the following example content: 10 N F 08/07/19 08:53 Atte...
Instead of trying printing the Mutt Mail User Agent inbox, you should seek the mail files itself, they sometimes contains the timestamps too. There is the NeoMutt documentations, which may help you: https://neomutt.org/dev/documentation
How can I print Mutt Mail User Agent Inbox list in a text file?
1,618,299,897,000
I used fetchmail to access my Hotmail/Outlook mailbox. It downloaded every message inside Inbox, but now that folder is empty at the server. Now I see that fetchmail deletes messages by default: -k | --keep : Keep retrieved messages on the remote mailserver. Normally, messages are deleted from the folder on the m...
Solved using Thunderbird: Install Thunderbird Link Hotmail account to Thunderbird using the same IMAP settings as in fetchmail In Thunderbird install ImportExportTools extension Create new folder in Local Folders, right click on the new folder, select ImportExportTools and import mbox file, select the user's mailbox ...
Recover/reupload messages deleted by fetchmail
1,618,299,897,000
I am trying to find out what mail service is being used to send voicemail to email on Centos 7 / FreePBX14 Distro.
The power of Google compelled me to find the blog for version 14, which led me to FreePDX Project and thence to Checking the Email Queue which showed it's postfix.
Centos 7 / FreePBX14 Distro Email
1,534,811,468,000
I need a way to slice everything after an email appears and before certain text appears. Example formats are shown here: [email protected]:0:3rw3e:weofkew:StackOverflow= [email protected]:19.2132.1:StackOverflow= Format needed would be: [email protected]:StackOverflow= (followded by everything else on the line). So...
sed -r 's/(@[^:]+:).*(StackOverflow=)/\1\2/' input.txt Explanation sed -r 's/foo/bar/' input.txt: use sed with extended regular expressions, replacing pattern foo with bar, for file input.txt. (@[^:]+:).*(StackOverflow=): match from the @ in the email address, which is followed by 1 or more non-: characters ([^:]+)....
Slice between two strings (email + word) [closed]
1,534,811,468,000
I have python script which sends email by shell function "mail". It runs fine. However, when I put in crontab to run it is unable to send mail to the recipient, rather it sends error message to my address. Is there any issue that crontab cannot send mail running via another script? Here is my crontab entry: 30 8 * ...
As Jeff mentioned, the environment variable was not passing. The command in crontab: 30 8 * * * $HOME/.bash_profile; /home/akand/./pyscript.py worked.
Crontab mail issue
1,534,811,468,000
I'd like to make sure a message, when deleted from an IMAP account (say on a locally installed server that I would manage) is safe deleted, i.e. filled with random data before being actually deleted. What I have in mind is a mail service installed on a Linux machine, which provides IMAP access. Can that be implemented...
Theoretically it can be implemented (I am not aware of any current implementation), however it would be a moot point. You are trying to provide a "secure wipe" function to ensure confidentiality of email messages; however, the message has already transited in plaintext through multiple mailservers from the sender to ...
Can a "safe delete" be implemented for an IMAP server in Maildir mode?
1,534,811,468,000
I've installed mail-in-a-box on Ubuntu 14.04 and I can't seem to find how to change Roundcube's logo. Thank you
To convert nijave's comment into an answer, pulling from HowtoForge's How do I change the roundcube logo to my own? -- knowing that I don't have the software available to test this: Edit the /etc/roundcube/config.inc.php file: // replace Roundcube logo with this image // specify an URL relative to the document root of...
Roundcube logo mail-in-a-box
1,534,811,468,000
The maximum number of recipient for gmail is 500. Is there any limit in the number of recipient using swaks? swaks -t [email protected] -t [email protected] -t [email protected] [...]
The Gmail limit (n recipients per mail, m mails/day) is enforced on the SMTP server to prevent an user from spamming; it is not a hard limit due to the specific command Google uses to send mail. As such, using a command line tool to connect to Gmail SMTP server won't change this limit. Note that passing 500 recipients...
Is there a limit in the number of recipient with swaks?
1,534,811,468,000
My host (Kapsi ry internet society) changed the servers, after which I have not been able to read my emails, etc by mutt and host's webmail: all mailboxes seems to be empty. I have done all proposed changes in mutt configs, but the problem has persisted now 3 weeks. I can read no emails by mutt anymore. Everything loo...
The case is now resolved. The technical support team did this for the resolution add to the home directory .maildir_enable -file, which tels to the server Devecot about your use of Maildir -directory for mails fixed .procmailrc -file such that spam goes to the right place in the right format - - there was a missing...
How to troubleshoot reading emails after server upgrade?
1,534,811,468,000
Is there a way to block connections for incoming requests for GMAIL at port level? Is it that all protocols use same port for incoming and outgoing connections?
Block incoming ports 25, 465 and 587. And you will have only outgoing mail from this server. Also you can consider to set the SMTP daemon to listen only to 127.0.0.1 which will make it accept incoming mail only via localhost and send mail to the world
How to block a port connection (Ex: GMAIL) for incoming mails and allow only for outgoing mails?
1,534,811,468,000
I use sendmail to manage the emails of my website. I'm testing features which require to send emails, and I'd like to receive these emails in a local directory of my server, store them as text files that I can read with vi for example. I found a way to do this a few months earlier, the emails were stored in a specific...
I found how I did this the first time. It wasn't a sendmail configuration, but a piece of PHP code found here It doesn't even use sendmail anymore, sendmail path is replaced with the PHP code path in php.ini file. The emails are stored in a specific folder with the addressee's address + random characters as filename.
Sendmail : save email into a file
1,534,811,468,000
I have installed fdm and offlineimap to connect to our corporate Exchange server. Now I want an action that marks a message read when a pattern matches.
I found a way to move and mark: action "processed" maildir "%h/Mails/work/INBOX.Processed" # Found here: https://github.com/nicm/fdm/blob/master/examples/f-terbeck.conf action "mark-read" exec 'mf="%[mail_file]"; mv "${mf}" "${mf%%/*}/../cur/${mf##*/}:2,S"' match "^From:.*test@xyz\.de" in header...
fdm & msmtp: mark messages read
1,534,811,468,000
If I need to set a /27 in the mentioned config file (sendmail), how can I do it? I need to write all the 30 IP's in it? Or does it accepts /27?
You have to write all the IP (or hostnames).
How to set subnets in /etc/mail/relay-domains?
1,534,811,468,000
using Cygwin on Windows 8, Quick Bash script to search server for files modified in the past 120 days: Run once a week as a Cron job, But i cannot format the email. All i want is a simple New Line: data=$(find /cygdrive/g/SERVERPATH -mtime -120 -name "*.exe" -exec stat -c "%n : %y" {} \;) ; [[ -n "$data" ]] && ema...
I answered my own question. Simply writing down, normally dummys it enough for my brain to click in. Pass HTML option and just use HTML formatting: email -html -s So for a working example: data=$(find /cygdrive/g/SERVERPATH -mtime -120 -name "*.exe" -exec stat -c "%n : %y" {} \;) ; [[ -n "$data" ]] && email -htm...
Cygwin - Email - New Line (Carriage Return) (How to)
1,534,811,468,000
To check whether Munin email notifications are still functioning, I have changed temporarily the "warning" and "critical" threshold to a very low value, and restarted the munin-node service. To my dismay, I did not receive any Munin alert. The Postfix service is running on port 25 and I can easily connect via telnet t...
It appears the problem went away by itself after I reinstalled the ssmtp package. I also modified the following line in /etc/munin/munin.conf so to include the full path to the mail binary: contact.example.command /bin/mail -s "Munin alert" [email protected]
Munin stopped sending email alerts
1,534,811,468,000
I have a script that saves to DB content of piped to it file. cat /mailpath/Maildir/cur/mailfile | php -q /scriptpath/mailPipe.php I need a shell script or oneliner to find all files in Maildir, pipe them to php script and delete every file after that. I know how to find and pipe every single file to PHP find /mailpa...
This command should fails because the -delete is executed before the exec and also because in anycase your script only read input from stdin. find /mailpath/Maildir/cur/ -type f -delete -exec php -q /scriptpath/mailPipe.php {} \; I suggest you this one now : find . -type f -exec sh -c "php -q /scriptpath/mailPipe.ph...
Find mails, pipe them to php and delete after
1,534,811,468,000
in Plesk (11.5) you can deactivate mail service on a specific domain. I did this, because: At my domain provider I configured the domain DNS settings like this: A-record: IP points to web server with Plesk and Postfix. MX-record: Points still to the domain providers' mail servers (I don't want to use mail at the web s...
Thanks to sebix.... I searched for a way to change the settings within Plesk 11. So, under the "Domains" section: Choose your domain and change the DNS MX settings to the external mail server. You can add a secondary record if more external mail servers exists and give them a priority. Regards.
mail delivery goes wrong with mx lookup
1,534,811,468,000
I have a Intel NUC with an i3 processor running the latest Mint version with the Cinnamon desktop and already installed some basic services (Apache, MariaDb, ownCloud etc). The next step would be to set up a mail server on the same box but I just recognized that most mail server which are considered as "easy to instal...
Adding a mail server to an existing server should have no significant impacts. Other than resources required, the software will not interfere with other services. A few things to consider: Do you have a static IP address? If not many servers will consider your email spammish. Can you get the PTR record set to the ...
Install mail server in VM
1,426,372,498,000
I took a look at my postfix logs and I've noticed an odd occurrence lately: SMTP sessions that seem to end right after the RCPT TO, as such: postfix/smtpd[11333]: > unknown[XXX.XXX.238.86]: 220 [mydomain.com] ESMTP (Ubuntu) postfix/smtpd[11333]: < unknown[XXX.XXX.238.86]: EHLO LMSPC.[otherdomain.com] postfix/smtpd[113...
It can be for a number of different reasons. I used to run these tests to see whether a mail server was configured properly (was it setup to accept mail for that particular domain. I had occurences when new mail servers weren't setup properly and then people complained that they hadn't received mail only to realise th...
postfix logs: SMTP sessions stopping after RCPT TO
1,426,372,498,000
For example, the server I am using uses the host name "A.com". Now, I want to send an email to "[email protected]". But the email server isn't on this server. How can I do this?
This has nothing to do with Unix. You need to set an MX record in DNS for a.com. This record points to the name of the host which handles the mail for this domain. If there is no MX record for the target domain then the host a.com itself is tried for delivery. You can check that with host -t A google.com vs. host -t M...
How can I do to use a email service for a same domain on other server [closed]
1,426,372,498,000
I asked some time ago a question Send emails with a custom From: field However, still can't get exim4 running. It does send emails, but it is unable to receive any. I'm quite sure this might be because of mail server name and MX configuration. In my control panel I can set Preference, TTL, and Mail Server values for M...
Solved. Thanks for all your suggestions. The problem was connected to Name Servers, and after all they now correctly resolve names.
Mail - server name issues?
1,426,372,498,000
I am using fetchmail in combination with procmail for mail filtering on CentOS where my mail contains various log messages. They serve me so I could search through my mail(logs) for error strings. So does anyone haves an idea how could I check if one mail is missing because I have a fixed number of mail sent to me ev...
You can run a periodic log analyzer of some sort to verify that you have received everything you expect to receive. Perhaps something like this. awk 'BEGIN { e="[email protected]:[email protected]:[email protected]:[email protected]"; split(e, expected, /:/) } /^From / { seen[$2]++ } END { for (x in e...
Checking if a mail has arrived, if not then alert
1,426,372,498,000
I have installed POSTFIX over Squirrelmail on CentOS Linux... The services I have ran are: service httpd service ssl service mysql service postfix service saslauthd service dovecot But I want to know : How can I send mail but nothing go to my sentbox?
Just you should know a trick... you can do: cd /home/bobby/Maildir && chmod -w .Sent/ That works!!!
Disabling sentbox in postfix over Squirrelmail
1,426,372,498,000
Using this script to pull the command out lines from the text file and sending to email in table format. Need to know how to make the multiple rows (as single command has multiple lines of out) to put in a single cell using awk. Script used: tmpfile="/tmp/test.html" input="/tmp/test.txt" { echo '<table border=1 cel...
This might be what you're trying to do, using any awk: $ cat tst.sh #!/usr/bin/env bash tmpfile='test.html' input='test.txt' awk ' BEGIN { print "<table border=1 cellspacing=0 cellpadding=3>" } NR == 1 { print "<tr><td>Hostname</td><td>" $0 "</td></tr>" } NR == 2 { print "...
Using awk to pull multiple rows from a txt file and put it a single cell in html
1,426,372,498,000
I wanted to save mail in unix in some directory, as we do in outlook (files are saved with .msg extensions). Is there any workaround for doing this.
you can use save command: save [msglist] /YourDir/file this command will append messages to file. or you can use pine: (http://www.washington.edu/pine/tutorial.4/index.html#SavingMsg) To save a message to your saved-messages folder: At the Message Index screen, use the arrow keys to highlight the message you want to ...
How to save mails in Unix? [closed]
1,426,372,498,000
I'm trying to send emails programmatically with Python. The emails stay in the mail queue (mailq). Details are below. My diagnosing abilities have reached their limit. Perhaps the issue is my ISP blocking outgoing emails from my (dynamic) IP address. Perhaps Gmail and Yahoo are expecting a different port or protocol. ...
You can check if you have access to the mail relay by doing e.g. nc mailrelay 25 I'd strongly suspect your ISP blocks outgoing mail traffic (there is just way too much spam on the net already, by some estimates fully 95% of all email traffic)
Why are my emails generated with Python stuck in mail queue
1,426,372,498,000
I have postfix installed on a development box and I used the parameters from this other posting to configure postfix to work on localhost only. But the other posting does not explain how to send emails or view received emails from the command line. I have higher level code for sending/receiving smtp email, but I wan...
Unless you have a specific requirement to move your mail store; simply restore the configuration to the defaults. That setup stores your emails in /var/spool/mail/<username> instead of your home which means any MUA you install will know where to find it without any reconfiguration.
unable to view postfix email from centos 7 command line, why not?
1,426,372,498,000
On Debian LAMP with different PHP based CMSs I use the MTA sSMTP to send email via an email proxy (Gmail); the emails I send are only contact-form inputs transferred from any such CMS to my own email account: CMS contact-form input → Eail proxy (Gmail) → Main email account I use (also Gmail) My sSMTP conf looks simi...
ssmtp has to use your login and password to send the mail. If it would be encrypted, ssmtp would have to decrypt it, so the hacker could do the same. The file /etc/ssmtp/ssmtp.conf should have only the necessary permissions to allow ssmtp to access the file and you should secure your system to prevent unauthorized acc...
Protecting an email-proxy (Gmail) account being used by a Mail Transfer Agent (MTA)
1,426,372,498,000
I have this spamassassin implementation where I lowered the score on: KHOP_BIG_TO_CC It works when I override the score in my /etc/mail/spamassassin/local.cf file but I cannot find the .cf file that holds this specific rule. Checked both the locations where rules are kept: /usr/share/spamassassin /etc/mail/spamassass...
I don't know the answer about KHOP_BIG_TO_CC, but here's some tips for exploring your server: You can view which rule files are being loaded by spamassassin with this command: spamassassin --lint -D 2>&1 | grep 'config: read file' On a RHEL 6 system using sa-update I found the rule sets under /var/lib/spamassassin. Y...
where are the spamassassin KHOP rules?
1,426,372,498,000
mailto: .. attach= is not working for firefox nor chrome, so can't email a .klm file from Google Earth? I love having Google Earth on Debian, but when I try to email a .klm view file using File | Email | Email view... and select web browser mailto: handler: I get the following error message: I'm not seeing this erro...
Here's a workaround to get a *.kmz file from Google Earth in GMU/Linux for your current location: Create a push pin in the view you're at. (The name doesn't matter, but if you name it your filename below will be that name.) Then right click on this push pin and select 'Save Place As'. Then you can attach this *.kmz...
Google Earth: Unix email
1,426,372,498,000
CRON has emailed me the extract below : May 12 04:27:54 rpi postfix/smtpd[9343]: NOQUEUE: reject: RCPT from unknown[95.211.213.214]: 504 5.5.2 <WIN-HBAL58UG0JH>: Helo command rejected: need fully-qualified hostname; from=<[email protected]> to=<[email protected]> proto=ESMTP helo=<WIN-HBAL58UG0JH> May 12 04:27:54 rpi ...
dhag was on the right lines. It was squirrelmail wrapping the lines, when I exported the email it had no wrapping. Later I found a setting under options, which when I set really high took away the wrapping for my cron job logs. But this has the side effect that now all your emails are not wrapped up to that limit, un...
how to prevent cron job email splitting into multiple lines
1,428,913,881,000
I followed this guide to set up TLS and auth. I have a username (usr) and a password (pwd) set in /etc/exim4/passwd and the files has the right permissions: -rw-r----- 1 root Debian-exim 51 Oct 16 13:11 passwd If I remove the plain text part of the line in that file and run: htpasswd -vb passwd usr pwd the...
The documentation lies so do not listen to it. What you need is to uncomment the plain_server driver in conf.d/auth/30_exim4-config_examples and comment out the plain_saslauthd_server and login_saslauthd_server garbage. The saslauth driver do not work. From there onwards, it will work as expected. Source.
Help in debugging Exim4 SMTP AUTH 535 Incorrect authentication data
1,428,913,881,000
I have an Ubuntu 16.04 xenial Nginx server environment with postfix and a few webapps under /var/www/html. How could I notify myself by my an email sent to my personal Gmail account, if my site is down? The desired state is that if the webpages or at least in homepage, doesn't give https status 200 (OK), I'll get dai...
As mentioned in the comments, there are literally dozens of ways you can do this. The most basic possible would be to call wget or curl from a daily cron job and check their exit code (if they can't download the page, they'll return a non-zero exit code), then use that to trigger an e-mail. While this approach has a ...
Notifying myself thtat my webapp/website is down (Nginx environment) [closed]
1,428,913,881,000
I'm currently planning my business servers and I would like to know what's the best Linux distro for these needs: Nginx + MySQL + PHP 5.4 Zimbra Collaboration - Open Source Node.js w/ Forever I know it's a objective question but I asked a lot of people and they didn't answer me other thing than "It's your choice".....
You might want to use a distribution that has a low footprint. Debian quickly comes to mind, but I can't see why you wouldn't use ubuntu or centos or even gentoo or arch. In the end of the day, you should use the distribution you feel more comfortable with.
Best Linux for a small Web server [closed]
1,428,913,881,000
How can I install GnuPG on my CentOS 7 system? I want to use GnuPG alongside Thunderbird and Enigmail to manage pgp keys, as per the instructions in this link. The problem is that the download instructions I find for linux all have to do with Debian. Here is an example. EDIT typing which gpg resulted in /usr/b...
install Enigmail Thunderbird > Add-ons Menu > Enigmail If you do not already have a PGP key, generate one: gpg --gen-key (follow its prompts to complete the process; default values are generally fine) 3. Restart Thunderbird. Enigmail will probably auto-detect the presence of your GnuPG keychain and use it. If it...
installing GnuGPG with Thunderbird on CentOS 7
1,428,913,881,000
I need to send an email. The requirements are as follows: Plain text and not HTML (Message type) Plain text and not base64 (Attachments, given that my attachments are all ASCII text files.) How do I do this? I use Debian 10 buster generic.
By default, command-line mail user agents send e-mail in plaintext. And there is no need to encode in Base64 an ASCII text file (encoding is done for binary content only). So you can simply use this command: mailx [email protected] < mytextfile.txt
Sending email attachments in plain text format instead of base64
1,428,913,881,000
I am using linux (Debian 8) on my VPS server. I use virtualmin to handle all domains. I created emails using 'create new user' in the 'edit users' section. I can send emails to others, but I am not able to receive emails. What could be the problem?
I solved the email issue by Configuring Postfix to not use ipv6. belos is way to do that. add below line in your /etc/postfix/main.cf inet_protocols = ipv4 and restart postfix using below command systemctl restart postfix i find above solution at below thread https://www.virtualmin.com/node/53447
I am not able to receive emails on my VPS [closed]
1,428,913,881,000
I am switching to new system with a OS using Linux.I will be using another system which has windows ultimate which is hacked.I am being cyber bullied. I have given a reference to this as a question on stackexchange. Now I want to install some softwares on my system with linux that I havnt started it which can pre...
Being 'traced' and being 'hacked' are two very different issues but I'll cover them in a broad sense. If you need to surf anonymously you can use something like TOR to anonymize the traffic but that's not likely necessary. Unless the person harassing you has recurring access to your old email addresses using them for ...
What software(s) should I install on new system(with Linux as a OS) to prevent it from getting hacked? [closed]