Tag Info

Hot answers tagged

24

openDKIM and Postfix on Ubuntu Server 12.04LTS I'll try to come back and format this better. But since there was a request to post my answer, I wanted to post it now rather than wait until I had time to format it properly. Due to lack of time, I wrapped my entire answer in a blockquote. I hope this solution is helpful. These are my references: man ...


11

This is the best/simple method. sudo apt-get install postfix That's it a mail server is installed. Now administrating that mail server is a whole different story. By default postfix will deliver and relay for all local user accounts. That should get you started. If you want something more complex then you REALLY REALLY need to read, study, learn, ...


9

Open a terminal and type sudo tasksel install mail-server That will give you a fully functional mailserver with sane defaults. For more information on how to setup a more customized solution, refer to the Ubuntu Server Guide for 12.04: https://help.ubuntu.com/12.04/serverguide/email-services.html


5

It seems very stupid but I have solved the problem. I hadn't noticed that a system administrator somehow blocked 3306 port for all hosts at the firewall, and therefore I couldn't connect to mysql. After removing that restriction I was able to connect to mysql without any problems. Thanks for your suggestions and help.


5

Running a mailserver is not a install-and-go process. Over time you'll want to deal with spam and viruses and people trying to hack your machine via the mail servers. Despite hosting dozens of domains, I don't host email at all. I've farmed all of that off to Google Mail and I recommend everybody does something similar. Life is too short to worry about your ...


4

Nuke it in orbit! Your server was compromised, I wouldn't try to "repair it" but plainly starting from 0 and then prevent it gets compromised again. You can check our network paranoids security experts counsels at Information Security. Related: How do you know your server has been compromised? Prevent from happening again: Determining the point of ...


3

You can change it in postfix configuration file /etc/postfix/main.cf. The helo line is controlled by the smtpd_banner parameter. It probably references the myhostname option. Put your server name there instead of localhost: myhostname = server.example.com smtpd_banner = myhostname and restart postfix with sudo postfix reload.


3

Opposed to what a lot of people think, you don't actually need to set up MX records for email delivery. 'A' records will do the job as well. See "History of fallback to A" at Wikipedia about MX records. Alternatively, you could configure your MTA (e.g. Postfix) to use a specific transport for a domain. For Postfix use transport_maps. In order to make ...


3

If you are new to email server but still want to set up one. You can check out my blog page Tiny VPS Postfix. It is a good starting point to learn, and you can expend the configuration for full setup in future. What it does Send/Receive mail for your domain Forward all incoming email to another email address according to configuration. What it does not ...


2

WARNING: It should work but I have not tested it myself. RECOMMENDED IMPROVEMENT: I would advice making both postfix and dovecot use mysql (or another database) to store valid virtual user. Discussion about procmail script in /etc/procmailrcs/ /etc/postfix/main.cf: # list of valid/served virtual domains virtual_mailbox_domains = example.com example.net # ...


2

Postfix is a drop-in sendmail replacement that includes its own sendmail binary (see the foot of this post). I'm honestly surprised apt let you do this, I thought they were package conflicted. Anyway, to fix: sudo apt-get purge sendmail sudo apt-get install --reinstall postfix sudo /etc/init.d/postfix restart Proof that sendmail on my system is ...


2

It seems that your main.cf is wrong formatted. The logfile writes: May 13 13:30:53 risheetech postfix/master[9018]: warning: /etc/postfix/main.cf: logical line must not start with whitespace: " smtpd_banner = $myhostname ES..." Have a look at the third list item in postconf(5): A logical line starts with non-whitespace text. A line that ...


2

The following line from the error log gives valuable info: localhost postfix/smtpd[13352]: NOQUEUE: reject: RCPT from mail-lb0-f173.google.com[209.85.217.173]: 550 5.1.1 <sarmenb@mydomain.com>: Recipient address ejected: User unknown in local recipient table; from=<sarmenhb@my-gmail.com> o=<sarmenb@mydomain.com> proto=ESMTP ...


2

I was just getting this same error on one of the company computers. Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2) I was also getting this error a lot when I tried to run X-windows programs through ssh: GConf Error: Failed to contact configuration server; some possible causes are that you need to enable TCP/IP ...


2

Never look for AMIs using ElasticFox or using the community tab in Amazon's EC2 console or using the ec2-describe-images -a command. These tools make it difficult to know who publishes the AMIs which is critical in determining what AMIs you can trust. Always look for an AMI id in a list that is published by a source that you trust. For an Ubuntu AMI, that ...


2

Zarafa doesnt provide packages for 11.10, but only for the Ubuntu LTS versions. The only way to run Zarafa on 11.10 would be to compile the packages yourself (what would be the opposite of easy). For administrating your server you should take a loog at Z-Admin (https://community.zarafa.com/pg/plugins/project/672/developer/zarq/zadmin) its an recently as ...


2

Take a look here: https://help.ubuntu.com/11.04/serverguide/C/email-services.html Forget about sendmail, it's just too complicated for testing purpuses. You'll need a program to receive emails (that would be postfix) and a mail delivery agent to get the mails to your client via POP3 or IMAP. This could be dovecot - to use with postfix just use the ...


1

A simple solution is squirrel mail: https://help.ubuntu.com/community/Squirrelmail Certainly not the best web mail client ever, but easy to set up and reliable. A more fance client is roundcube. The roundcube package is included in the multiverse repository. Both solutions need an IMAP mail delivery agent. So you might need the dovecot-postfix package or ...


1

Sounds like your IP address was being used by a spammer before and Google blacklisted it, or that your system is sending email too quickly. I would follow the recommendations listed at http://www.google.com/mail/help/bulk_mail.html as they mentioned.


1

Port 110 is for POP3 which is only relevent for connecting to a POP3 server for downloading email. For email to land on your server, you're talking about SMTP. This is what both your client and external relays use to move messages around the internet. SMTP uses port 25. Dovecot has nothing to do with how emails land on your server. For this you need a Mail ...


1

What finally helped me was purging (not removing!) all the apt-get packages related to mysql except for libmysqlclient16 which was in de-install status (not sure what that is). So, just do: dpkg --get-selections | grep mysql and then: sudo apt-get purge <package_name> Start from common then go to client and then the server.


1

For me, the issue was that I also had a DNS issue. To fix this, I used dpkg-reconfigure postfix From within the terminal window and changed the "local networks" field answer to include the IP of my public IP for the server. Afterwards, I ran service postfix reload and service postfix restart and all was well.


1

Are you sure it is not a misconfiguration or something? For instance, are you sure it runs on port 25? I have had a similar issue with a server I had written, which I tried to telnet on port 7980, when I had asked it to bind to port 7908. If I were in your shoes the first diagnostics I would run myself is a netstat to make sure that the server is indeed ...


1

Okay I've solved my problem. I took the generic MailScanner files listed as "Version 4.84.5-2 for Solaris / BSD / Other Linux / Other Unix" and run the install.sh provided. I then pulled down the init.d file for Debian Linux package. I had to tweak the init.d file and run update-rc.d a bit. Once that was done I followed the instructions from here and ...


1

Use the Baruwa repo [apt.baruwa.org] simple and easy cat > /etc/apt/sources.list.d/baruwa.list << 'EOF' deb http://apt.baruwa.org/ubuntu oneiric main EOF wget -O - http://apt.baruwa.org/baruwa-apt-keys.gpg | apt-key add - apt-get update apt-get install mailscanner


1

Without more specific info about which email server you are using it's gonna be rather difficult to answer. One thing you can be interested in is imapsync. http://www.howtoforge.com/how-to-migrate-mailboxes-between-imap-servers-with-imapsync However, it doesn't support migration of a whole server but rather a separate mailbox. When it comes to migration ...


1

You can use gmail as relay. Ubuntu postfix. Using gmail as SMTP relay Gmail as SMTP-service. Install postfix. sudo apt-get install postfix Select the settings during installation according to your needs. If you ever need to redo the configuration run: sudo dpkg-reconfigure postfix Edit /etc/postfix/main.cf by adding the following rows: relayhost = ...


1

"You need to make sure that postfix user is able to read that file. You can post the output of sudo ls -l /etc/postfix/sasl_passwd.db to get more help." And from the comments: "Change the owner of the config directory of postfix to postfix and it works." Source


1

It sounds like you're talking about two different things. If you need to configure a relayhost, it is because outgoing access to port 25 has been blocked by your ISP. Given that the mail servers listen on port 25 by convention, you will almost certainly have to use a relay host of some variety. My guess as to what the person at the help desk was ...



Only top voted, non community-wiki answers of a minimum length are eligible