Mail smarthost/forwarding (spamhaus.org)

Discussion Room for the Synology MailStation Package

Mail smarthost/forwarding (spamhaus.org)

Postby 2thamaxx » Tue Mar 24, 2009 1:55 pm

I've been using the mail station since the beta and with allot of satisfaction although it's still very limited.

Now since last week I discovered that my ISP has put the customers IP range to the blacklist (spamhaus.org) that is used by most SMTP hosts like hotmail etc.
Since this change I cannot email anyone anymore.
I've been looking into a workaround as my provider will not exclude mine IP address :( .
Workaround would be the ability to use a smarthost (forwarding external email) to i.e. mine ISP SMTP server.
Unfortunately I haven't found a way to do this in the mail station.

Cheers

ps, looks like more and more of us are getting this problem......so if Synology is not coming with a workaround I'm afraid this feature will not last for long.
Synology CS-407 WD5000AAKS-00A7B RAID5
Logitec Squeezebox Classic
Logitec Harmony 525
User avatar
2thamaxx
Student
Student
 
Posts: 72
Joined: Wed Jul 16, 2008 10:06 pm

Re: Mail smarthost/forwarding (spamhaus.org)

Postby momo » Tue Mar 24, 2009 4:03 pm

hi there,

i think that you should have a look in the main.cf file.
you have directive relay_host to set if you want to relay to your ISP SMTP.
"If you have a problem, if no one else can help and if you can find them,
maybe you can hire... The A-Team"
---
"Sodomy. One of the top 10 most common household accidents." House M.D
momo
Novice
Novice
 
Posts: 53
Joined: Mon Nov 26, 2007 11:49 am
Location: France - 06°12'54"E - 49°01'01"N

Re: Mail smarthost/forwarding (spamhaus.org)

Postby 2thamaxx » Tue Mar 24, 2009 9:42 pm

Hi,

Thanks for directing me.
I did some research and have collected the following information which could help other users as well.

I used the following third party package which is super useful: http://www.xs4all.nl/~merty/syno/ConfigFileEditor.spk

Once installed start the package (this will automatically drop back to the stop state but that's ok).

Open from the management interface under the menu 'Third-party applications' the program Config file editor.
Open here the config file from the Config file editor.

Add the following rule and save:
/usr/syno/mailstation/etc/main.cf,Postfix

Restart your Synology machine (otherwise in my case the Postfix didn't show up).

Again, go to the config file editor and now choose the 'Postfix'.
Search for the line with the text ' #relayhost = [mailserver.isp.tld] '
Edit this line with the following:

relayhost = smtp.yourprovider.xx (make sure you remove the #).

Replace the smtp.yourprovider.xx for the smtp server offered from your provider.

After this I only had to stop and start the mailstation package.

Mail now is working like a charm. :mrgreen:

Credits to the Dutch Synology Forum for this information.
Synology CS-407 WD5000AAKS-00A7B RAID5
Logitec Squeezebox Classic
Logitec Harmony 525
User avatar
2thamaxx
Student
Student
 
Posts: 72
Joined: Wed Jul 16, 2008 10:06 pm

Re: Mail smarthost/forwarding (spamhaus.org)

Postby ColdFire » Wed Mar 25, 2009 10:29 pm

Thanks for that information dude, very usefull... I will hopefully look at that later tonight...
Does anyone know how you would add SMTP smarthost authentication details? Thanks!
ColdFire
Beginner
Beginner
 
Posts: 24
Joined: Fri Feb 20, 2009 11:08 pm

Re: Mail smarthost/forwarding (spamhaus.org)

Postby Farley » Wed Mar 25, 2009 11:42 pm

Super workaround 2thamaxx,it worked a charm..... Nice one.....
Farley
Trainee
Trainee
 
Posts: 14
Joined: Sun Jan 04, 2009 11:03 pm

Re: Mail smarthost/forwarding (spamhaus.org)

Postby 2thamaxx » Thu Mar 26, 2009 1:09 am

ColdFire wrote:Thanks for that information dude, very usefull... I will hopefully look at that later tonight...
Does anyone know how you would add SMTP smarthost authentication details? Thanks!


As far as I know "most" isp allow relaying without authentication (ip based).
It's only pop3 they ask for credentials.

Otherwise I don't know how to do it....Let us know if it works or not.

Cheers!
Synology CS-407 WD5000AAKS-00A7B RAID5
Logitec Squeezebox Classic
Logitec Harmony 525
User avatar
2thamaxx
Student
Student
 
Posts: 72
Joined: Wed Jul 16, 2008 10:06 pm

Re: Mail smarthost/forwarding (spamhaus.org)

Postby schauy » Mon Mar 30, 2009 10:00 am

hi,

activating POSTFIX config file in "config file editor" worked for me by pressing "F5" (the ultimate reload order :) ) in the menu frame on the left side.
No reboot required.

Greetings,
Schauy
### 6 * (DS210J | DSM 2.3-1141 | 2 * 500 GB HDD)
### 3 * (RS409+ | DSM 2.3-1141 | 4 * 2 TB HDD)
### 3 * (RX4 | 4 * 2 TB HDD)
### 1 * (DS107+ | DSM 2.3-1141 | 1 * 200 GB HDD)
schauy
I'm New!
I'm New!
 
Posts: 6
Joined: Mon Mar 30, 2009 9:53 am

Re: Mail smarthost/forwarding (spamhaus.org)

Postby 2thamaxx » Tue Mar 31, 2009 8:12 pm

schauy wrote:hi,

activating POSTFIX config file in "config file editor" worked for me by pressing "F5" (the ultimate reload order :) ) in the menu frame on the left side.
No reboot required.

Greetings,
Schauy


hmm, wierd. on my cs407 it woun't work.
Anyways, I had to do it all over again after the firmware upgrade.
Will make a backup from the main.cf file for next time :idea:
Synology CS-407 WD5000AAKS-00A7B RAID5
Logitec Squeezebox Classic
Logitec Harmony 525
User avatar
2thamaxx
Student
Student
 
Posts: 72
Joined: Wed Jul 16, 2008 10:06 pm

Re: Mail smarthost/forwarding (spamhaus.org)

Postby wulee » Sun Apr 19, 2009 2:12 pm

2thamaxx wrote:
ColdFire wrote:Thanks for that information dude, very usefull... I will hopefully look at that later tonight...
Does anyone know how you would add SMTP smarthost authentication details? Thanks!

As far as I know "most" isp allow relaying without authentication (ip based).
It's only pop3 they ask for credentials.
Otherwise I don't know how to do it....Let us know if it works or not.
Cheers!


My outbound SMTP is also blocked. Inbound email is fine.

My ISP also need authentication to use the relay SMTP smarthost.

Any clues to add authentication support for the SMTP smarthost?

Thanks.
Andrew
wulee
Beginner
Beginner
 
Posts: 21
Joined: Tue Dec 05, 2006 3:20 pm

solution (theory) Re: Mail smarthost/forwarding (spamhaus.or

Postby schauy » Sun Apr 26, 2009 10:05 am

hi,

we have a postfix and saslauthd installation on the disk station.

In theory the authentication for relaying OUTGOING mail should be very easy:
just use the config file editor the way 2thamaxx described it (http://forum.synology.com/enu/viewtopic.php?f=132&t=13848#p58840) and then follow the instructions here:
http://postfix.state-of-mind.de/patrick.koetter/smtpauth/smtp_auth_mailservers.html.
hint: synology postfix config files are in "/usr/syno/mailstation/etc"

If I am faster than one of you I will post my experiences here - right now the weather is too beautiful to stay inside :D

greetings,
schauy
### 6 * (DS210J | DSM 2.3-1141 | 2 * 500 GB HDD)
### 3 * (RS409+ | DSM 2.3-1141 | 4 * 2 TB HDD)
### 3 * (RX4 | 4 * 2 TB HDD)
### 1 * (DS107+ | DSM 2.3-1141 | 1 * 200 GB HDD)
schauy
I'm New!
I'm New!
 
Posts: 6
Joined: Mon Mar 30, 2009 9:53 am

Re: Mail smarthost/forwarding (spamhaus.org)

Postby ian7387 » Thu Apr 30, 2009 5:37 pm

It's great ... I have been struggling for days ... eventually now get it done.

:lol:
ian7387
I'm New!
I'm New!
 
Posts: 4
Joined: Thu Apr 30, 2009 5:34 pm

Re: Mail smarthost/forwarding (spamhaus.org)

Postby 2thamaxx » Mon May 04, 2009 6:31 pm

Well done chaps! :D
Synology CS-407 WD5000AAKS-00A7B RAID5
Logitec Squeezebox Classic
Logitec Harmony 525
User avatar
2thamaxx
Student
Student
 
Posts: 72
Joined: Wed Jul 16, 2008 10:06 pm

Re: Mail smarthost/forwarding (spamhaus.org)

Postby chales » Thu May 14, 2009 5:59 pm

Hi - I am trying to work through http://postfix.state-of-mind.de/patrick ... rvers.html (16.1.3)

but unable to postmap the sasl_passwd file on my 407e. Any guidance appreciated. Thanks.
chales
I'm New!
I'm New!
 
Posts: 6
Joined: Fri May 08, 2009 11:59 am

Re: Mail smarthost/forwarding (spamhaus.org)

Postby schauy » Thu May 14, 2009 7:30 pm

Hi,

do you have any error message or could you explain what exactly you were doing ?

greetings,
schauy
### 6 * (DS210J | DSM 2.3-1141 | 2 * 500 GB HDD)
### 3 * (RS409+ | DSM 2.3-1141 | 4 * 2 TB HDD)
### 3 * (RX4 | 4 * 2 TB HDD)
### 1 * (DS107+ | DSM 2.3-1141 | 1 * 200 GB HDD)
schauy
I'm New!
I'm New!
 
Posts: 6
Joined: Mon Mar 30, 2009 9:53 am

Re: Mail smarthost/forwarding (spamhaus.org)

Postby chales » Thu May 14, 2009 8:19 pm

schauy wrote:Hi,

do you have any error message or could you explain what exactly you were doing ?

greetings,
schauy


Sure. As root, I run the command: postmap etc/usr/mailstation/etc/postfix/sasl_passwd

after having created the file as per 16.1 in http://postfix.state-of-mind.de/patrick ... rvers.html

and the error is "-ash: postmap: not found". So I don't have this command on the system and have no idea why.

Thanks
chales
I'm New!
I'm New!
 
Posts: 6
Joined: Fri May 08, 2009 11:59 am

Next

Return to MailStation

Who is online

Users browsing this forum: No registered users and 0 guests