Iredmail Could not save new password. Encryption function missing


It's a bug of iRedMail, the latest Roundcubemail-1.2.0 changed sample config file of its password plugin, this causes iRedMail didn't correctly configure path of 'doveadm' command. Please fix it by following steps below:

*) Open file /opt/www/roundcubemail/plugins/password/config.inc.php, search parameter name "password_dovecotpw". Like this:

$config['password_dovecotpw'] =

*) You will find duplicate parameters, remove one of them, and make sure the remained one is set to:
$config['password_dovecotpw'] = '/usr/bin/doveadm pw';

Aws IAM Policy for S3 Bucket to put/get/list/delete

{
"Version": "2012-10-17",
"Id": "Policy1470210411143",
"Statement": [
{
"Sid": "Stmt123432456644",
"Effect": "Allow",
"Principal": {
"AWS": "arn:aws:iam::12345678903:user/amaresh"
},
"Action": [
"s3:DeleteObject",
"s3:GetObject",
"s3:ListBucket",
"s3:PutObject"
],
"Resource": [
"arn:aws:s3:::iam.sample.bucket",
"arn:aws:s3:::iam.sample.bucket/*"
]
}
]
}

Policy to restrict S3 bucket access to specific IP addresses

http://docs.aws.amazon.com/AmazonS3/latest/dev/example-bucket-policies.html

http://docs.aws.amazon.com/AmazonS3/latest/dev/amazon-s3-policy-keys.html


{
"Id": "Policy1470283588127",
"Version": "2012-10-17",
"Statement": [
{
"Sid": "Stmt12345674345788",
"Action": "s3:*",
"Effect": "Allow",
"Resource": [
"arn:aws:s3:::iam.sample.bucket",
"arn:aws:s3:::iam.sample.bucket/*"
],
"Condition": {
"NotIpAddress": {
"aws:SourceIp": "183.82.101.68/27"
}
},
"Principal": "*"
}
]
}


Aws IAM Policy for user to start/stop Ec2 instance


http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ExamplePolicies_EC2.html


{
"Version": "2012-10-17",
"Statement": [
{
"Sid": "Stmt14435321355",
"Action": [
"ec2:DescribeInstances"
],
"Effect": "Allow",
"Resource": "*"
},
{
"Effect": "Allow",
"Action": [
"ec2:StopInstances",
"ec2:StartInstances"
],
"Resource": [
"arn:aws:ec2:us-east-1:1234567890:instance/i-1234567890abcder"
]
f
]
}
Action::
The action is the specific API action for which you are granting or denying permission
http://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_Operations.html
ec2:DescribeInstances -> allows user to view only instances
ec2:Describe* -> allows user to view all resources

setting dkim record for multiple domains iredmail

From Source
http://www.iredmail.org/docs/sign.dkim.signature.for.new.domain.html

on RHEL/CentOS: it's /etc/amavisd/amavisd.conf.
on Debian/Ubuntu: it's /etc/amavis/conf.d/50-user.

Use existing DKIM key for new mail domain

if you already have a working DKIM and valid DKIM DNS record, it's ok to use this existing DKIM key to sign emails sent by other hosted mail domains. This way, you don't need to ask your customer who owns this new domain to add DKIM DNS record.
  • Find below setting in Amavisd config file amavisd.conf:
dkim_key('mydomain.com', "dkim", "/var/lib/dkim/mydomain.com.pem");

@dkim_signature_options_bysender_maps = ( {
    ...
    "mydomain.com"  => { d => "mydomain.com", a => 'rsa-sha256', ttl => 10*24*3600 },
    ...
});
Add one line in @dkim_signature_options_bysender_maps, after "mydomain.com" line like below:
@dkim_signature_options_bysender_maps = ( {
    ...
    "mydomain.com"  => { d => "mydomain.com", a => 'rsa-sha256', ttl => 10*24*3600 },
    "new_domain.com"  => { d => "mydomain.com", a => 'rsa-sha256', ttl => 10*24*3600 },
    ...
});
  • Restart Amavisd service.

Generate new DKIM key for new mail domain

If you or your customer prefer to use their own DKIM key, you can generate a new DKIM key and ask your customer to add DKIM DNS record. Refer to our tutorial to add DKIM DNS record.
  • Generate new DKIM key (key length 1024) for new domain.
# amavisd-new genrsa /var/lib/dkim/new_domain.com.pem 1024
Note
  • on different Linux/BSD distributions, the command may be amavisd.
  • on RHEL/CentOS, you must specify the config file on command line like this:
# amavisd -c /etc/amavisd/amavisd.conf genrsa /var/lib/dkim/new_domain.com.pem
  • Not all DNS vendors support 2048-bit key length as TXT type record, so iRedMail generates the key in 1024-bit. If you want to use 2048-bit instead, please specify the key length on command line:
# amavisd -c /etc/amavisd/amavisd.conf genrsa /var/lib/dkim/new_domain.com.pem 2048
  • Find below setting in Amavisd config file amavisd.conf:
dkim_key('mydomain.com', "dkim", "/var/lib/dkim/mydomain.com.pem");
Add one line after above line like below:
dkim_key('new_domain.com', "dkim", "/var/lib/dkim/new_domain.com.pem");
  • Find below setting in Amavisd config file amavisd.conf:
@dkim_signature_options_bysender_maps = ( {
    ...
    "mydomain.com"  => { d => "mydomain.com", a => 'rsa-sha256', ttl => 10*24*3600 },
    ...
});
Add one line after "mydomain.com" line like below:
@dkim_signature_options_bysender_maps = ( {
    ...
    "mydomain.com"  => { d => "mydomain.com", a => 'rsa-sha256', ttl => 10*24*3600 },
    "new_domain.com"  => { d => "new_domain.com", a => 'rsa-sha256', ttl => 10*24*3600 },
    ...
});
  • Restart Amavisd service.
Again, don't forget to add DKIM DNS record for this new domain. The value of DKIM record can be checked with command below:
# amavisd-new showkeys
After added DKIM DNS record, please verify it with command:
# amavisd-new testkeys
Note: DNS vendor usually cache DNS records for 2 hours, so if above command shows "invalid" instead of "pass", you should try again later.

Use one DKIM key for all mail domains

For compatibility with dkim_milter the signing domain can include a '*' as a wildcard - this is not recommended as this way amavisd could produce signatures which have no corresponding public key published in DNS. The proper way is to have one dkim_key entry for each mail domain.
If you still want to try this, please follow below steps:
  • Find below setting in Amavisd config file amavisd.conf:
dkim_key('mydomain.com', "dkim", "/var/lib/dkim/mydomain.com.pem");
  • Replace it by below line:
dkim_key('*', "dkim", "/var/lib/dkim/mydomain.com.pem");
  • Restart Amavisd serivce.
With above setting, all outbound emails with be signed with this dkim key. And Amavisd will show a warning message when start amavisd service:
dkim: wildcard in signing domain (key#1, *), may produce unverifiable signatures with no published public key, avoid!

Server denied POP3 access for the given username and password


1- Sign into the old Gmail account first ( the one you are trying to fetch mail from )

2 -  you may need to Enable less-secure Apps for that account >> https://www.google.com/settings/security/lesssecureapps

Then sign in to the new Gmail account ( the one you are trying to fetch mail into )  and set up Mailfetcher within the 10 minute window you are allowed.

Iredmail Session Expired - relogin again


session expired iredmail

1. roundcube
modify
/opt/www.roundcubemail/config/config.inc.php
$config['ip_check']= true;
change to
$config['ip_check']= false;
Try changing $rcmail_config['session_lifetime'] in /config/main.inc.php to 0


2. Iredadmin
Modify
/opt/www/iredmail/libs/iredbase.py
web.config.session_parameters['ignore_change_ip'] = False
change it to
web.config.session_parameters['ignore_change_ip'] = True

THE NTFS PARTITION IS IN AN UNSAFE STATE ERROR IN UBUNTU

QUICK FIX TO MOUNT WINDOWS PARTITION IMMEDIATELY

Read the error again. Just the second line which reads: Error mounting /dev/sdXY….
Note the /dev/sdXY thing. XY should be replaced with the error you see in your system. Now open terminal and use the following command:
sudo ntfsfix /dev/sdXY
where XY is the troublesome partition shown in the error. For example sda2 or sdb1 or sda5 (as in picture above). ntfsfix is already installed in Ubuntu systems.

The 101 Most Useful Websites

The 101 Most Useful Websites
These sites solve at least one problem really well and they all have simple web addresses
(URLs) that you can easily memorize thus saving a trip to Google.



1. screenr.com – record movies of your desktop and send them straight to YouTube.
2. ctrlq.org/screenshots – for capturing screenshots of web pages on mobile and desktops.
3. goo.gl – shorten long URLs and convert URLs into QR codes.
4. unfurlr.com – find the original URL that's hiding behind a short URL.
5. qClock – find the local time of a city using a Google Map.
6. copypastecharacter.com – copy special characters that aren't on your keyboard.
7. postpost.com – a better search engine for twitter.
8. lovelycharts.com – create flowcharts, network diagrams, sitemaps, etc.
9. iconfinder.com – the best place to find icons of all sizes.
10. office.com – download templates, clipart and images for your Office documents.
11. followupthen.com – the easiest way to setup email reminders.
12. jotti.org – scan any suspicious file or email attachment for viruses.
13. wolframalpha.com – gets answers directly without searching - see more wolfram tips.
14. printwhatyoulike.com – print web pages without the clutter.
15. joliprint.com – reformats news articles and blog content as a newspaper.
16. ctrql.org/rss – a search engine for RSS feeds.
17. e.ggtimer.com – a simple online timer for your daily needs.
18. coralcdn.org – if a site is down due to heavy traffic, try accessing it through coral CDN.
19. random.org – pick random numbers, flip coins, and more.
20. pdfescape.com – lets you can quickly edit PDFs in the browser itself.
21. viewer.zoho.com – Preview PDFs and Presentations directly in the browser.
22. tubemogul.com – simultaneously upload videos to YouTube and other video sites.
23. dabbleboard.com – your virtual whiteboard.
24. scr.im – share you email address online without worrying about spam.
25. spypig.com – now get read receipts for your email.
26. sizeasy.com – visualize and compare the size of any product.
27. myfonts.com/WhatTheFont – quickly determine the font name from an image.
28. google.com/webfonts – a good collection of open source fonts.
29. regex.info – find data hidden in your photographs – see more EXIF tools.
30. livestream.com – broadcast events live over the web, including your desktop screen.
31. iwantmyname.com – helps you search domains across all TLDs.
32. homestyler.com – design from scratch or re-model your home in 3d.
33. join.me – share you screen with anyone over the web.
34. onlineocr.net – recognize text from scanned PDFs - see other OCR tools.
35. flightstats.com - Track flight status at airports worldwide.
36. wetransfer.com – for sharing really big files online.
37. hundredzeros.com – best-sellers on all subjects that you can download for free.
38. polishmywriting.com – check your writing for spelling or grammatical errors.
39. marker.to – easily highlight the important parts of a web page for sharing.
40. typewith.me – work on the same document with multiple people.
41. whichdateworks.com – planning an event? find a date that works for all.
42. everytimezone.com – a less confusing view of the world time zones.
43. gtmetrix.com – the perfect tool for measuring your site performance online.
44. noteflight.com – print music sheets, write your own music online (review).
45. imo.im - chat with your buddies on Skype, Facebook, Google Talk, etc. from one place.
46. translate.google.com – translate web pages, PDFs and Office documents.
47. kleki.com – create paintings and sketches with a wide variety of brushes.
48. similarsites.com – discover new sites that are similar to what you like already.
49. wordle.net – quick summarize long pieces of text with tag clouds.
50. bubbl.us – create mind-maps, brainstorm ideas in the browser.
51. kuler.adobe.com – get color ideas, also extract colors from photographs.
52. liveshare.com – share your photos in an album instantly.
53. lmgtfy.com – when your friends are too lazy to use Google on their own.
54. midomi.com – when you need to find the name of a song.
55. bing.com/images – automatically find perfectly-sized wallpapers for mobiles.
56. faxzero.com – send an online fax for free – see more fax services.
57. feedmyinbox.com – get RSS feeds as an email newsletter.
58. ge.tt – quickly send a file to someone, they can even preview it before downloading.
59. pipebytes.com – transfer files of any size without uploading to a third-party server.
60. tinychat.com – setup a private chat room in micro-seconds.
61. privnote.com – create text notes that will self-destruct after being read.
62. boxoh.com – track the status of any shipment on Google Maps – alternative.
63. chipin.com – when you need to raise funds online for an event or a cause.
64. downforeveryoneorjustme.com – find if your favorite website is offline or not?
65. ewhois.com – find the other websites of a person with reverse Analytics lookup.
66. whoishostingthis.com – find the web host of any website.
67. google.com/history – found something on Google but can't remember it now?
68. aviary.com/myna – an online audio editor that lets record, and remix audio clips online.
69. disposablewebpage.com – create a temporary web page that self-destruct.
70. urbandictionary.com – find definitions of slangs and informal words.
71. seatguru.com – consult this site before choosing a seat for your next flight.
72. sxc.hu – download stock images absolutely free.
73. zoom.it – view very high-resolution images in your browser without scrolling.
74. scribblemaps.com – quickly create custom Google Maps online.
75. alertful.com – quickly setup email reminders for important events.
76. picmonkey.com – Picnik is offline but PicMonkey is an even better image editor.
77. formspring.me – you can ask or answer personal questions here.
78. sumopaint.com – an excellent layer-based online image editor.
79. snopes.com – find if that email offer you received is real or just another scam.
80. typingweb.com – master touch-typing with these practice sessions.
81. mailvu.com – send video emails to anyone using your web cam.
82. timerime.com – create timelines with audio, video and images.
83. stupeflix.com – make a movie out of your images, audio and video clips.
84. safeweb.norton.com – check the trust level of any website.
85. teuxdeux.com – a beautiful to-do app that looks like your paper dairy.
86. deadurl.com – you'll need this when your bookmarked web pages are deleted.87. minutes.io – quickly capture effective notes during meetings.
88. youtube.com/leanback – Watch YouTube channels in TV mode.
89. youtube.com/disco – quickly create a video playlist of your favorite artist.
90. talltweets.com – Send tweets longer than 140 characters.
91. pancake.io – create a free and simple website using your Dropbox account.
92. builtwith.com – find the technology stack of any website.
93. woorank.com – research a website from the SEO perspective.
94. mixlr.com – broadcast live audio over the web.
95. radbox.me – bookmark online videos and watch them later (review).
96. tagmydoc.com – add QR codes to your documents and presentations (review).
97. notes.io – the easiest way to write short text notes in the browser.
98. ctrlq.org/html-mail – send rich-text mails to anyone, anonymously.
99. fiverr.com – hire people to do little things for $5.
100. otixo.com – easily manage your online files on Dropbox, Google Docs, etc.
101.ifttt.com – create a connection between all your online accounts.

Ubuntu only wallpaper and a mouse cursor is showing



Lets reset the desktop

Press Ctrl + ALT + F2 Then you will get a full screen Terminal. Login with your Username and Password.

Then execute these commands in order:

rm -r ~/.config 
rm -r ~/.compiz 
sudo restart lightdm