LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 05-08-2010, 02:36 AM   #1
ganfun
Member
 
Registered: Apr 2010
Location: Mumbai, India
Distribution: Ubuntu Server 9.10
Posts: 38

Rep: Reputation: 15
Postfix with dovecot on ubuntu 9.10 mail send error


Hi,

i installed a new server ubuntu server 9.10 with lamp, etc.

after which i followed the following tutorial to setup

Postfix, DoveCot, Squirell

http://www.debianadmin.com/debian-ma...rrel-mail.html

It was working fine till here. After which i installed the spamassain which also got configured perfectly.

I can send only 1 or 2 mails after which i get error

here is my confid file of postfix


Quote:
# See /usr/share/postfix/main.cf.dist for a commented, more complete version


# Debian specific: Specifying a file name will cause the first
# line of that file to be used as the name. The Debian default
# is /etc/mailname.
#myorigin = /etc/mailname

smtpd_banner = $myhostname ESMTP $mail_name (Ubuntu)
biff = no

# appending .domain is the MUA's job.
append_dot_mydomain = no

# Uncomment the next line to generate "delayed mail" warnings
#delay_warning_time = 4h

readme_directory = no

# TLS parameters
smtpd_tls_cert_file = /etc/ssl/certs/ssl-cert-snakeoil.pem
smtpd_tls_key_file = /etc/ssl/private/ssl-cert-snakeoil.key
smtpd_use_tls=yes
smtpd_tls_session_cache_database = btree:${data_directory}/smtpd_scache
smtp_tls_session_cache_database = btree:${data_directory}/smtp_scache

# See /usr/share/doc/postfix/TLS_README.gz in the postfix-doc package for
# information on enabling SSL in the smtp client.

myhostname = minfolin
alias_maps = hash:/etc/aliases
alias_database = hash:/etc/aliases
myorigin = /etc/mailname
mydestination = mydomain.com, minfolin.minfo-server, localhost.minfo-server, localhost
relayhost = mail.mydomain.com
mynetworks = 127.0.0.0/8 [::ffff:127.0.0.0]/104 [::1]/128
mailbox_size_limit = 0
recipient_delimiter = +
inet_interfaces = all

smtpd_sasl_auth_enable = yes
smtpd_sasl_local_domain = mydomain.com
smtpd_recipient_restrictions = permit_mynetworks permit_sasl_authenticated reject_unauth_destination
smtpd_sasl_type = dovecot
smtpd_sasl_path = private/auth

The config of my host file.

Quote:
127.0.0.1 mail.mydomain.com, localhost
198.168.0.13 mydomain.com

# The following lines are desirable for IPv6 capable hosts
::1 localhost ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
ff02::3 ip6-allhosts
--------------------------------------------
I get the following error when i try to send emails.

The mail system

<someone@gmail.com>: host mail.mydomain.com[70.38.xx.xx] said: 550 Access
denied - Invalid HELO name (See RFC2821 4.1.1.1) (in reply to MAIL FROM
command)

or if i play with the config

<someone@gmail.com>: mail.mydomain.com[70.38.xx.xx] said:
550-(mydomain.com) [210.211.xxx.xxx] is currently not permitted to relay
550-through this server. Perhaps you have not logged into the pop/imap
server 550-in the last 30 minutes or do not have SMTP Authentication turned
on in your 550 email client. (in reply to RCPT TO command)

Fully frustrated with this, anyhelp or a link for this problem will be helpfull.
 
Old 05-08-2010, 07:59 AM   #2
ganfun
Member
 
Registered: Apr 2010
Location: Mumbai, India
Distribution: Ubuntu Server 9.10
Posts: 38

Original Poster
Rep: Reputation: 15
problem solved hank you

i struggled a lot with this error

and finally i got the problem fixed

in case you are getting the same error here is the one line you need to add up on the /etc/postfix/main.cf file

smtp_helo_name = host.example.com

pls replace this with ur FQDN or whatever is ur name kept.

have any problems pls get back to me
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Ubuntu mail server stopped recieving mail. will send. Ubuntu 9 ISPconfig3 Postfix 255 kejxero Linux - Server 0 02-07-2010 06:57 PM
Can send mail, but can't receive on Ubuntu Server 9.04 with Postfix Jamie Kugelmann Linux - Server 22 12-23-2009 06:38 AM
Postfix+Dovecot error : RELAY ACCESS DENIED when send mail out to Other domain simon.unix Linux - Networking 6 09-16-2009 10:54 AM
Postfix + Dovecot + mail send restriction brgsousa Linux - Software 0 11-26-2008 01:14 PM
Postfix send mail error halvorls Linux - Server 1 09-14-2008 03:39 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 09:34 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration