Posted on

How to configure Postfix on Ubuntu 10.04

First and foremost I should advise that this article explains how to setup Virtual Domains that are not connected to Linux users. The premiere source of information on the subject, and as some in the IRC channel have called it, “the word of god”, is postfix.org.

The first step is to actually install postfix:
sudo apt-get install postfix

Once installed you must do the basic configuration of postfix required to receive and send emails from your domain.

I suggest you look at “basic postfix configuration” to learn how to setup your domain name and relay hosts.
For me it was important to setup the mail relay for my application server, and to have the postfix HELO set as my Mail Exchange DNS / rDNS.

Reverse DNS is important, since hosts like AOL will reject mail from your IP address if your HELO doesn’t match the reverse look up.

That done, I wanted to be able to create users under a variety of domains. The section titled “Postfix virtual MAILBOX example: separate domains, non-UNIX accounts” was the key to this quest. I chose this because I wanted to minimize the attack surface on the box,  by limiting the amount of valid users. There is a way to create users without shell access, but I preferred not to create users at all, it was just a better reflection of what the box is for.

The main point of this article, is to highlight the pieces I was missing, having done these two things!

So here is what I needed:
#1 I needed to go ahead and turn the /etc/postfix/vmailbox file and /etc/postfix/virtual file into .db files which postfix needs.

sudo postmap /etc/postfix/vmailbox
sudo postmap /etc/postfix/virtual

This is due to the fact that tailing the /var/log/mail.log file showed this as an issue.

#2 I realized I completely overlooked setting the correct UID and GID for the postfix user!

sudo cat /etc/passwd | grep postfix

Revealed the correct id’s for the virtual_uid_maps, virtual_gid_maps attributes for the /etc/postfix/main.cf file.

#3 I reloaded postfix, but emails were still not being delivered. The virtual domains map to the base path on the file system set in the virtual_mailbox_base. And those directories did not exist yet.

sudo mkdir /var/mail/vhosts
sudo mkdir /var/mail/vhosts/winwinhost.com
sudo chown -r postfix:postfix /var/mail/vhosts

And that was it, those were the missing pieces. Remember to tail the mail log. This will really help you identify what is going wrong with the configuration. If you join the #postfix channel on freenode IRC, please remember to be courteous, use pastebin to expose your logs, and use complete sentences with proper English punctuation and grammar.

Thanks for reading, and I hope this helps someone out there, in the interwebs.

 

Posted on

Letter to my Congressman, Howard L. Berman, Stop SOPA

Hello Congressman,

I am contacting you regarding the new SOPA law that stands to be voted soon. I realize that one bad apple, Julian Assange, has made it absolutely necessary for the government to censor the internet. But lets not forget that Censorship by the government against the will of the people is tyranny.

Thousands of computer engineers, such as myself, will become infuriated. It’s bad enough, the world we live in, total injustice, completely mindless consumerism. Is it really in the government’s best interest to dumb down its population and to conduct all business behind closed doors?

I was an isolationist 10 years ago, standing against Globalization. But Now I have adapted, and am using the global economy and the internet to compete with the best of them. Please, stop SOPA. Its not good for any individual’s rights. Goes against the first amendment. Freedom of press! Stop the injustice.

All our communications are already monitored thanks to the Patriot Act and the Carnivore software pluged into the ISP’s by the FBI. I swear, John Gotti would have been a better President. A nation of laws!? I think not.

The super rich commit murderous acts without any accountability. Yet the common people can’t even so much as download an MP3, or write a blog criticizing them. Please restore sanity.

Posted on

EC2 – Not worth it!

Don’t use EC2.

Take it from me, I got ripped off!
I went through this crazy headache of trying out AWS.

First let me tell you, their jargon alone is so confusing, that I don’t recommend using their systems.

Its like you have to relearn everything.

“Reserved Instances” turned out to be memberships, and the caveats for actually having used this discount pricing memberhship correctly, are ridiculous.

Ultimately I have lost about 500 bucks and three months trying out AWS, and I am very dissatisfied with their support and their customer service.
Like what is up with loosing access to your instances?

I turned around and grabbed two dell servers, T110 and T310, called Time Warner, ordered business class internet, and BOOM!
I’ve got two top of the line boxes running Ubuntu 11, and two old boxes running Ubuntu 10.
I couldn’t be happier.

 

 

Posted on

AWS EC2 Reserved Instance

I just paid over two hundred dollars for a “reserved instance.” Now to my understanding this was supposed to a Virtual Private Server sitting on the elastic compute cloud. Something I could SSH into and something that would expand and contract as needed in terms of CPU, Storage, and Bandwidth.

We’ll paying for it was easy. But I have no idea how to even access what I just paid for!

They provide ZERO support (forums and other useless ways to drain your time) and if you want real help you have to pay for it.

So far I am super dissatisfied with my purchase. Now I have to sit and google “how to launch a reserved instance” and hope I find something useful.

 

Posted on

Yahoo BOSS vs Lucene

When I worked at Yahoo! we got to use BOSS for the search functionality for that particular property.  BOSS stands for “Build Your Own Search Service.” So far it seems to be mainly used by SEO people, and few companies interested in leveraging the data in Yahoo’s/Microsoft’s database.  For example as a discovery method for existing content, which they need to apply their own search algorithms to.

I was charged with the task of leveraging an existing web search service for which we could control the index.  Basically our own search engine.  Now when I was at Yahoo! that’s exactly what BOSS allowed us to do. We had a special interface into which we can add indexes and control weights/metrics on different fields to prioritize search criteria.

Unfortunately I don’t have that luxury anymore, as the public offering of BOSS seems to do Web, News, Images, Ads, and Spelling mostly.

So I am setting up a demo using Lucene. Yet another wonderful open source contribution from the amazing team over at Apache Software Foundation. So I just downloaded it now, and I am about to start playing with it.

Hopefully I will be fine with Yahoo BOSS or Lucene/Solr. I am asking the Yahoo people for access to that interface. I don’t think they will provide it, but Lucene should be just as good. We will just need to maintain some infrastructure for it.

There is also Google Search Appliance, but you gotta get on the phone just to try it and I really don’t want to call Google just to try them out also.

 

 

 

 

Posted on

Zend ORM and multiple primary keys.

I was searching for a way to define the zend table with multiple keys, and it seems it works just fine as an array. Somehow I doubt it.

“The Zend_Db_Table_Abstract class stores primary keys as an array and many operations $_primary as an array.

However, currently the insert() method of Zend_Db_Table_Abstract still assumes that the insert operation will generate a primary key value, and this value can be retrieved by using lastInsertId(). This is true only for server-side auto-generated id columns, such as AUTO_INCREMENT in MySQL. This does not work for Oracle, PostgreSQL, or DB2. It also doesn’t work for MySQL or any RDBMS for tables that have compound or natural keys.

Also, the __set() method of Zend_Db_Table_Row_Abstract assumes that it is illegal to set the primary key value of a row explicity, and the save() method assumes that the only time that it should insert a row instead of update it is when the primary key column(s) are empty.”

Posted on

Commission Junction

I’ve tried to brake into the affiliate marketing game, started sometime 2008. I have to say that systems like CJ.com are absolutely the worst for people just starting out!
I put a blog online, with links to a popular antivirus program. And I did earn like 12 dollars from a sale.
But CJ.com took the money away from me. And later they even completely disabled my account.
Not cause I violated a TOS policy or something of that sort. Just because I didn’t have enough traffic and didn’t login to my account enough.

I am going with Google Affiliate Network now. Or another affiliate network that is not so strict on how often you check your account.
Have to go through all my blogs and change the links!

Posted on

Oracle is Suing Google over Java on the Android

What a ridiculous development.  Sun Micro-systems was recently acquired by Oracle, and of course, the shenanigans begin! This is why I am so interested in Ebay’s acquisition of Magento. Oracle purchased a language they didn’t even develop, that was out under a copy left or GNU license. Turns out its not just the language, but the patents which Sun owns.

I don’t like the idea of Oracle owning MySQL and Java. How long before PHP is taken over? Quite frankly SAP and Oracle are a bunch of jokers. What they do,  an in house team of programmers can do just as well. Only they charge ridiculous fees for their software, import cheap labor, and charge a giant markup for that as well. Its not like they have out of the box solutions.  As a professional, I can do what SAP does with PHP/MySQL and not spend a dime on licensing, keep the jobs in the USA, and deliver a superior product.

 

 

Posted on

eBay Agrees to Acquire Magento

The past several years have been an amazing journey for Magento, as we’ve grown from a new open source platform into an eCommerce leader. Along the way, we’ve built not only a platform, but a company and a worldwide community. Together, we’ve identified opportunities, taken risks, innovated, struggled, succeeded, and changed the face of eCommerce. Today marks a milestone on this journey as we announce the most exciting news in our company’s history. 

Magento has reached an agreement to be acquired by eBay Inc. We believe this move will open incredible opportunities for the entire Magento ecosystem.

The Big Picture

Why is this acquisition so exciting for all of us? eBay is evolving to become a strategic commerce partner focused on delivering new ways for merchants of all sizes to drive innovation. As a centerpiece of this strategy, they are building a global, open commerce platform that leverages the worldwide developer community. And Magento will be at the core of this new, open commerce platform, called “X.Commerce.”

Magento & eBay

As many of you know, Magento has had a relationship with eBay for some time. In March 2010, eBay became our first outside investor. Over the past year, eBay has gotten to know our platform, our culture, and our community. They have experienced the passion of the Magento ecosystem, and they are eager to harness the power of this ecosystem to create the next generation of eCommerce innovation.

Magento Forward: The Details

How will this acquisition impact our organization, customers and partners? It’s too soon to know all the details, but there are a few things we know. Magento will continue to operate out of LA, with Yoav Kutner and me as its leaders following the closing. We’ll continue building our team and our enhancing our product line, including the Magento Community, Enterprise, and Mobile Editions, as well as Magento Go and the Magento Go Platform. And we’ll continue strengthening our training, education, packaged consulting services and support efforts around the world.

Through it all, we’ll be collaborating with our colleagues at eBay on developing the X.Commerce platform and defining the next generation of eCommerce innovation.

Yoav and I recorded a short video message for the community – you can find it on our blog, along with FAQs about the pending acquisition.

Creating The Future Together

To all the members the Magento family: we thank you for all the passion, expertise and hard work that you’ve invested in Magento. Thanks to you, Magento finds itself exactly where we’ve always aimed to be: at the core of eCommerce. We are thrilled to become part of a larger organization that recognizes – as we always have – that the future of eCommerce is global, innovative and open. We look forward to creating that future with all of you.

Warm Regards,

Roy Rubin
Co-Founder and CEO, Magento