PDA

View Full Version : Postfix SMTP experiment



Peon
12-01-2012, 03:58 PM
Fellas,

I have searched the forums before posting. I do not feel previous posts answered by question regarding reverse DNS lookups on an ADSL line, for SMTP purposes.

Ubuntu, postfix etc,etc. Im fiddling with SpamAssassin, mail storage, user accounting and various tricks and tools, go through the logs and see how it executed. As I can fiddle to much then just restore VMware state. I prefer to have this test server on a local network. I am not keen to hemorrhage money to a upstream provider just for fiddling and testing purposes.

As many of you know, smtp from an adsl line will always be rejected, from "DOMAIN NOT FOUND" to "SENDER REJECTED" to "I DONT FEEL LIKE ROUTING YOUR MESSAGE TODAY". The DSL ip will be rejected and reverse dns will faulter.

How does one overcome this? Im not keen on using ClearOS's dyndns feature supplied by clear solutions. This will work but not the solution if you setup a scratch postfix box.

Peon

Sinbad
12-01-2012, 04:02 PM
Overcome this by setting your mailserver's smart host to your ISP's smtp server.
You cannot affect reverse Dns using dyndns or anything like that.

Keegan
12-01-2012, 04:42 PM
What router do you have?
With NetGear's (and im sure some other routers also have this) you can create firewall rules to allow smtp to your server IP.

I think this is what you require?

Regards

MadMailMan
12-01-2012, 04:49 PM
Like Sinbad said, either forward all internet bound email to a smrthost (your ISP's smtp server) or create another VM and play by sending email between the two VMs. A complete closed environment with two VM's where you also control the DNS is a great way to learn how this all works.

The_Librarian
12-01-2012, 04:54 PM
By default all good sysadmins block/blacklist mail from dial-up connections as this is the way spammers try to peddle their wares.

You will need to use smarthost in order to smtp mail.



I have set this up using clearOS and iBurst, and it works really well - client is able to SMTP to world+dog via iBurst's SMTP server.

Peon
12-01-2012, 06:44 PM
Thank you all for the input.

I was hoping to avoid the smarthost plan, wondering if there was a slick DNS workaround.

Sinbad
12-01-2012, 06:46 PM
Thank you all for the input.

I was hoping to avoid the smarthost plan, wondering if there was a slick DNS workaround.

Reverse DNS authority is delegated by IP block. You won't manage to get a dynamic ip address delegated to a DNS outside of your ISP's.
Smart host should work perfectly, and transparently to your users.

Peon
13-01-2012, 05:25 PM
I keep getting hit by this:

to=<pvt.peon@gmail.com>, relay=smtp.isadsl.co.za[196.23.28.232]:25, delay=27, delays=0.01/0.01/24/2.4, dsn=4.0.0, status=deferred (host smtp.isadsl.co.za[196.23.28.232] said: 451-host lookup did not complete 451 Could not complete sender verify (in reply to RCPT TO command))

Im sure this is a DNS issue, dont know where....

The_Librarian
13-01-2012, 05:43 PM
Smarthosts.

Peon
13-01-2012, 05:47 PM
Smarthosts.

Not working.

EDIT: changed the login script for auth on smarthost. Works. One should rather use the TAB button to space than just hitting the space bar. I knew this, thought it wouldnt matter though.

The_Librarian
25-04-2012, 08:07 AM
How's things going so far? :)

Peon
25-04-2012, 08:39 AM
Worked like a charm. It was just a virtualbox experiment.

zizebra
25-04-2012, 08:41 AM
Smarthost probably with authentication is your best bet.

Sent from South Africas most popular smartphone BlackBerry

The_Librarian
25-04-2012, 10:00 AM
Worked like a charm. It was just a virtualbox experiment.

Good to hear :)

It always help to experiment and play around with stuff - so you know what will work and what not. :)