I'm using mutt with PGP and would like to store sent messsages in a corresponding IMAP folder. Problem: When I send an encrypted email to somebody, mutt copies the encrypted email to the sent folder, instead of an unencrypted version. Of course, since it is encrypted with the receivers key, I cannot unencrypt this message anymore, making it useless.
Is there a setting in mutt to fix this?
The setting you ask for is set fcc_clear=yes. This will save it in cleartext to the Sent folder (see man muttrc for full explanation).
There was a question to the opposite on superuser, so I'll extend my answer to that for a full picture.
Depending on where your "Sent" folder resides, either in a remote IMAP server you want to have fulltext search for (probably need cleartext), or on a local disk that is encrypted at-rest, you have further options:
mutt currently has pgp_self_encrypt in tandem with pgp_default_key (added to mutt on 2017-05-29 / 2018-01-15, so check your version) to control the behaviour
gnupg has an encrypt-to <keyid> option, but I would prefer the mutt config
neomutt has encrypt-to-self
Related
I'm moving mailbox data from the old zimbra server (oldmail.domain.com) to the new zimbra server (newmail.domain.com) using Imapsync.
I use the following command:
imapsync --nofoldersizes --skipsize --fast --nosyncacls --syncinternaldates --host1 oldmail.domain.com --user1 user#domain.com --authuser1 admin --password1 password1 --ssl1 --host2 newmail.domain.com --user2 user#domain.com --authuser2 admin --password2 password2 --ssl2
Why when on a new server, mailbox data requires a lot of hard disk space? The old server is under 100GB, the new server is more than 200GB. Meanwhile, the mailbox data that is moved is the same. I check the inbox of each account, there are no duplicate emails.
Why did it happen? If there is a duplication, how do I check the duplication? And how do I delete the duplicated mailbox data?
maybe there are some saved searches or shared folders in your account?
Setelah bertanya ke beberap forum, akhirnya saya mendapatkan jawaban.
Imapsync reads email as a separate object. So if an email is sent and cc to 10 accounts, imapsync will store as many as 10 emails, thus causing greater storage consumption.
In zimbra, there is a zmdedupe command which is executed in zimbra user mode. This command will make these emails saved only once, and will create a link to access them. So that it can save more storage
#su - zimbra
$zmdedupe start
We can see the status of this process by typing the command
zmdedupe status
From this command too, we can know how much storage can be saved.
So I am using MUTT on my Ubuntu server where I want to email a particular file to the user once he enters his email address in a webpage (hosted on the server).
I am storing his response as a .json file in the server but now I want to send email to the email address provided by him.
As far as i know, MUTT has a command to send the email to a recipient
mutt -s "Mail Subject" username#domain.com -a attachment.zip < mail_body.txt
What I want is, to get the username#domain from a file rather than hardcoding it.
Any leads on how to do this will be appreciated.
Thanks
Turns out that I had to create an executable script for this job.
I stored the email to a variable by using EMAIL=cat email.txt and then used this EMAIL variable as the recipient.
The enviroment is emacs 24.5+ Macpro 10.10.5
I can use /msg nickserv register **** 1#1.com to register, but I don't want to show the password even I can kill the buffer later. How can I do this? Thank you
You need to provide more details if you hope to get a more specific answer. For example, you have not stated which IRC client you are using in emacs and your request is not terribly clear. Where precisely are you worried about the password show? When you type it at the M-x prompt or are you typing in the whole command in the IRC uffer?
Assuming you are using ERC as your client, you can setup your config using the auth-sources library. To do this, you just need to create an authinfo.gpg file in your home directory with your credentials in it (following the standard netrc format). When you save the file, you will be prompted for a gpg password. The file will be kept encrypted on hour hard drive using gpg. The first time you try to access IRC, you will be prompted for your authinfo gpg password. Once you enter that, emacs will automatically decrypt the file, retrieve your IRC credentials and register your nick (you will need to set the erc-prompt-for-password variable to nil - use customize to do this).
I am having issues sending mail from my server, when I type in phpinfo() I get this:
Mail: /var/spool/mail/frank
...
_ENV["MAIL"]: /var/spool/mail/frank
The php file that I'm using the Mail function in is owned by Apache and has 775 permissions. Inside /var/spool/mail there is no apache file, but there is a file for every other user on the box. Do I need to change the php.ini? Or can I add in an apache file (perhaps duplicate the frank file and then rename)?
Any advice can help!
/var/spool/mail is where incoming unread mail is stored. There would be an 'apache' file only if the apache account has received mail.
Have you looked inside the MTA's log (usually /var/log/maillog) to see what's going on? If PHP's properly sending mail, there should be an entry in there for the mail being en-queued and what happened when the MTA (postfix/sendmail/exim/etc...) tries to forward it onwards.
I want to get the alert message for every execution of the scp command. If some one access my file using the scp command, that time I have to receive one mail. How can I achieve this. Please help me.
Unless you have administrative control of the server, what you ask is not possible -- Unix filesystems simply don't work that way. You can set your file permissions so that other users can't find or read your files, but there is no way for you, as an unprivileged user, to request email notification upon attempted or successful access attempts, via scp or any other method.
Are you on the server, or client side?
server side: Key-based ssh authentication has the ability to start custom commands when the user log into the system (can by bypassed if the user can change the authorized_keys file). There you can add a hook to send a mail on the login, or start a own sftp server with the desired logging enabled.
The right way to do that is to replace the scp program on the server by your own version (or by a wrapper).