Current User: Guest Login Register
Please consider registering


Register? | Lost Your Password?

Search Forums:


 






Minimum search word length is 4 characters – Maximum search word length is 84 characters
Wildcard Usage:
*  matches any number of characters    %  matches exactly one character

Attachment size and telnet smtp in Postfix

Reply to Post Add a New Topic
UserPost

11:24 pm
July 5, 2010


arieffirdaus

Member

posts 6

Hi admin,

I have 2 question about postfix and my Postfix using dovecot:

 

1. In postfix, what file I must to change so that I can limit attachment size up to 10 MB?

 

2. When I try to telnet smtp for other my networks, i see the result like this:

 

# telnet example.com 25
Trying 123.45.67.89…
Connected to localhost.localdomain (123.45.67.89).
Escape character is '^]'.
220 mail.example.com ESMTP Postfix
ehlo example.com
250-mail.example.com
250-PIPELINING
250-SIZE 10240000
250-VRFY
250-ETRN
250-AUTH PLAIN LOGIN
250-AUTH=PLAIN LOGIN
250-ENHANCEDSTATUSCODES
250-8BITMIME
250 DSN

 

I think it is dangerous for my mail server so everyone can send spam or anything else for my mail server from telnet. I want to my mail server like this:

 

# telnet example.net 25

Trying 123.45.67.98 …
Connected to example.net (123.45.67.98).
Escape character is '^]'.

220 example.net ESMTP,  No Unsolicited Commercial Email (U.C.E) Allowed. This SMTP is not for spammers iklan!!
421 4.4.2 example.net Error: timeout exceeded

So, what should i do in postfix? And what the term of that phenomenon like that?

 

Thank You for you answer.

 

8:42 am
July 6, 2010


consultant

Admin

posts 341

Hi arieffirdaus,

 

1. In /etc/postfix/main.cf, the line below set the maximum message size to 20MB

message_size_limit = 20480000

2. Changing the banner message will not protect you from spammers. Using Postfix STMP Authentication will.

11:09 pm
July 6, 2010


arieffirdaus

Member

posts 6

Thank You admin for your quick response.

But my question is not how to changing the banner message. My question is how we configure postfix so when someone try to telnet to my mail server by command:

 

# telnet example.com 25

 

it shows the notice like this:

 

421 4.4.2 example.net Error: timeout exceeded

 

and not like this:

 

# telnet example.com 25

Trying 123.45.67.89…

Connected to localhost.localdomain (123.45.67.89).

Escape character is '^]'.

220 mail.example.com ESMTP Postfix

 

Thank you for your answer.

6:23 pm
July 7, 2010


consultant

Admin

posts 341

Please check the log file at /var/log/maillog

Reply to Post

Reply to Topic:
Attachment size and telnet smtp in Postfix

Guest Name (Required):

Guest Email (Required):

Smileys
Confused Cool Cry Embarassed Frown Kiss Laugh Smile Surprised Wink Yell
Post New Reply

Guest URL (required)

Math Required!
What is the sum of:
8 + 12
   


About the Linux Mail Server Setup and Howto Guide Forum

Forum Timezone: America/New_York

Most Users Ever Online: 60

Currently Online:
13 Guests

Currently Browsing this Topic:
1 Guest

Forum Stats:

Groups: 2
Forums: 5
Topics: 326
Posts: 1012

Membership:

There are 928 Members
There have been 84 Guests

There is 1 Admin

Top Posters:

shanmugasundaram s – 45
Kendermin – 15
Ginger – 14
bighorn – 14
iron_michael86 – 12
Raminda – 11

Recent New Members: RaHuL, bikesh, pappy_says, geos, boudi7, dara.hr

Administrators: consultant (341 Posts)