LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 06-23-2012, 01:00 PM   #1
makoshark
LQ Newbie
 
Registered: Jun 2009
Location: Laurinburg, NC
Distribution: ubuntu 14.04.5 LTS
Posts: 12

Rep: Reputation: 0
mail for nilandsplace.com loops back to myself


Hello
I really have no idea what I am doing. I am very confused about how to configure Postfix/dovecot. When I try to send a email from my desktop I get this error:
Quote:
This is the mail system at host nilandsplace.localdomain.

I'm sorry to have to inform you that your message could not
be delivered to one or more recipients. It's attached below.

For further assistance, please send mail to postmaster.

If you do so, please include this problem report. You can
delete your own text from the attached returned message.

The mail system

<nilandjp@nilandsplace.com>: mail for nilandsplace.com loops back to myself
I was getting a relay denied error until I added
Quote:
$myhostname, $mydomain, $mydomainname.com, localhost.$mydomain, nilandsplace.com
in my webmin, but I have no idea if it is right so then I tried
Quote:
localhost.$mydomain, localhost, nilandsplace.com
and I still get the error in the email
Like I said I really do not understand how the mail is supposed to be set up
Here Is my main.cf
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 = /xxx/nilandsplace.com.crt
smtpd_tls_key_file = /xxx/private.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.

alias_maps = hash:/etc/aliases
alias_database = hash:/etc/aliases
myorigin = $mydomain
mydestination = $myhostname, $mydomain, $mydomainname.com, localhost.$mydomain, localhost
mailbox_size_limit = 0
recipient_delimiter = +
smtpd_helo_required = yes
smtpd_tls_CAfile = /etc/ssl/gd_bundle.crt
smtpd_recipient_restrictions = permit_auth_destination reject_invalid_hostname reject_rbl_client sbl.spamhaus.org reject_rbl_client blackholes.easynet.nl reject_rbl_client cbl.abuseat.org reject_rbl_client proxies.blackholes.wirehub.net reject_rbl_client bl.spamcop.net reject_rbl_client dnsbl.njabl.org reject_unauth_destination permit_sasl_authenticated permit
relay_domains = localhost.$mydomain, localhost, nilandsplace.com
Thank for any help
 
Old 06-25-2012, 12:18 AM   #2
descendant_command
Senior Member
 
Registered: Mar 2012
Posts: 1,876

Rep: Reputation: 643Reputation: 643Reputation: 643Reputation: 643Reputation: 643Reputation: 643
Quote:
Originally Posted by makoshark View Post
Like I said I really do not understand how the mail is supposed to be set up
This appears to be the problem

Please explain your mail setup and what you are trying to achieve.
Then you might be help-able.
 
Old 06-26-2012, 12:58 PM   #3
makoshark
LQ Newbie
 
Registered: Jun 2009
Location: Laurinburg, NC
Distribution: ubuntu 14.04.5 LTS
Posts: 12

Original Poster
Rep: Reputation: 0
Thanks for you kind help. it always makes me feel good to get slammed
 
Old 06-26-2012, 03:29 PM   #4
descendant_command
Senior Member
 
Registered: Mar 2012
Posts: 1,876

Rep: Reputation: 643Reputation: 643Reputation: 643Reputation: 643Reputation: 643Reputation: 643
Well you have effectively asked what turns to make to reach your destination, without telling us what your destination is.

How do you want your mail to work?
 
Old 06-28-2012, 02:43 PM   #5
makoshark
LQ Newbie
 
Registered: Jun 2009
Location: Laurinburg, NC
Distribution: ubuntu 14.04.5 LTS
Posts: 12

Original Poster
Rep: Reputation: 0
Hello
At this point I have 5 emails in the postfix cue but do not know why only five. I cannot get dovecot to authenticate, but I did finally manage to get Thunderbird to to connect to POP3 just can't get past the password or maybe the user account. Also it no longer bounces nilandsplace.localhost but nilandsplace.com. I have included a screen shot of my dovecot in webmin as I really do not know what to do with it?
Attached Thumbnails
Click image for larger version

Name:	Screenshot.png
Views:	14
Size:	93.4 KB
ID:	9994  

Last edited by makoshark; 06-28-2012 at 03:11 PM.
 
Old 06-30-2012, 06:09 AM   #6
jsaravana87
Member
 
Registered: Aug 2011
Location: Chennai,India
Distribution: Redhat,Centos,Ubuntu,Dedian
Posts: 558
Blog Entries: 5

Rep: Reputation: Disabled
Have you look after these link


Quote:
These link is best one for configuration of postfix and dovecot in ubuntu .I had configured the mail server by following the link .Try out these link and come up where u got struck up .First of all Post your log for analysing.I actually i could not find out your actual problem

http://library.linode.com/email/post...tu-10.04-lucid



i had pasted my configuration file

Quote:
root@example:~# cat /etc/postfix/main.cf
# 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 = /usr/share/doc/postfix

# TLS parameters
smtpd_tls_cert_file = /etc/postfix/smtpd.cert
smtpd_tls_key_file = /etc/postfix/smtpd.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 = .example.com
alias_maps = hash:/etc/aliases
alias_database = hash:/etc/aliases
myorigin = /etc/mailname
mydestination = server.example.com, localhost, localhost.localdomain
relayhost =
mynetworks = 127.0.0.0/8
mailbox_command = procmail -a "$EXTENSION"
mailbox_size_limit = 0
recipient_delimiter = +
inet_interfaces = all
html_directory = /usr/share/doc/postfix/html
message_size_limit = 30720000
virtual_alias_domains =
virtual_alias_maps = proxy:mysql:/etc/postfix/mysql-virtual_forwardings.cf, mysql:/etc/postfix/mysql-virtual_email2email.cf
virtual_mailbox_domains = proxy:mysql:/etc/postfix/mysql-virtual_domains.cf
virtual_mailbox_maps = proxy:mysql:/etc/postfix/mysql-virtual_mailboxes.cf
virtual_mailbox_base = /home/vmail
virtual_uid_maps = static:5000
virtual_gid_maps = static:5000
smtpd_sasl_auth_enable = yes
broken_sasl_auth_clients = yes
smtpd_sasl_authenticated_header = yes
smtpd_recipient_restrictions = permit_mynetworks, permit_sasl_authenticated, reject_unauth_destination
virtual_create_maildirsize = yes
virtual_maildir_extended = yes
proxy_read_maps = $local_recipient_maps $mydestination $virtual_alias_maps $virtual_alias_domains $virtual_mailbox_maps $virtual_mailbox_domains $relay_recipient_maps $relay_domains $canonical_maps $sender_canonical_maps $recipient_canonical_maps $relocated_maps $transport_maps $mynetworks $virtual_mailbox_limit_maps
virtual_transport = dovecot
dovecot_destination_recipient_limit = 1
virtual_alias_maps = regexp:/etc/postfix/virtual
virtual_alias_domains =
 
Old 06-30-2012, 07:27 PM   #7
makoshark
LQ Newbie
 
Registered: Jun 2009
Location: Laurinburg, NC
Distribution: ubuntu 14.04.5 LTS
Posts: 12

Original Poster
Rep: Reputation: 0
Hello
I followed the directions on the link that arun5002 gave me and I have postfix working as far as the email cue, but I do not seem to have it going to Dovecot. The mail directories automatically set up once created in Thunderbird as given in the example. but how do I get it from the postfix cue to the dovecot? also I have Clam AV and SpamAssassin Mail Filter installed and would like to get these working? What is:
Code:
virtual_alias_maps = regexp:/etc/postfix/virtual
for? I don't have it, do I need it? Otherwise my configure file looks like this
Code:
myhostname = mydomain.com
mydestination = server.mydomain.com,localhost, localhost.localdomain
mynetworks = 127.0.0.0/8
message_size_limit = 30720000
virtual_alias_domains = 
virtual_alias_maps = proxy:mysql:/etc/postfix/mysql-virtual_forwardings.cf, mysql:/etc/postfix/mysql-virtual_email2email.cf
virtual_mailbox_domains = proxy:mysql:/etc/postfix/mysql-virtual_domains.cf
virtual_mailbox_maps = proxy:mysql:/etc/postfix/mysql-virtual_mailboxes.cf
virtual_mailbox_base = /home/vmail
virtual_uid_maps = static:5000
virtual_gid_maps = static:5000
smtpd_sasl_auth_enable = yes
broken_sasl_auth_clients = yes
smtpd_sasl_authenticated_header = yes
smtpd_recipient_restrictions = permit_mynetworks, permit_sasl_authenticated, reject_unauth_destination
smtpd_use_tls = yes
smtpd_tls_cert_file = /etc/postfix/smtpd.cert
smtpd_tls_key_file = /etc/postfix/smtpd.key
virtual_create_maildirsize = yes
virtual_maildir_extended = yes
proxy_read_maps = $local_recipient_maps $mydestination $virtual_alias_maps $virtual_alias_domains $virtual_mailbox_maps $virtual_mailbox_domains $relay_recipient_maps $relay_domains $canonical_maps $sender_canonical_maps $recipient_canonical_maps $relocated_maps $transport_maps $mynetworks $virtual_mailbox_limit_maps
virtual_transport = dovecot
dovecot_destination_recipient_limit = 1
with mydomain as a stand in for my fqdn.

Last edited by makoshark; 06-30-2012 at 07:29 PM.
 
Old 07-01-2012, 09:43 AM   #8
makoshark
LQ Newbie
 
Registered: Jun 2009
Location: Laurinburg, NC
Distribution: ubuntu 14.04.5 LTS
Posts: 12

Original Poster
Rep: Reputation: 0
My mail,err log shows
Code:
Jul  1 10:32:50 nilandsplace postfix/pipe[18221]: fatal: get_service_attr: unknown username: vmail
I have no idea what to do about this I have removed and added the user already. My mail Log shows
Code:
Jul  1 10:37:50 nilandsplace postfix/oqmgr[17776]: E7DD0A4399: from=<nilandjp@roadrunner.com>, size=1101, nrcpt=1 (queue active)
Jul  1 10:37:50 nilandsplace postfix/pipe[18409]: fatal: get_service_attr: unknown username: vmail
Jul  1 10:37:51 nilandsplace postfix/oqmgr[17776]: warning: private/dovecot socket: malformed response
Jul  1 10:37:51 nilandsplace postfix/oqmgr[17776]: warning: transport dovecot failure -- see a previous warning/fatal/panic logfile record for the problem description
Jul  1 10:37:51 nilandsplace postfix/master[17774]: warning: process /usr/lib/postfix/pipe pid 18409 exit status 1
Jul  1 10:37:51 nilandsplace postfix/master[17774]: warning: /usr/lib/postfix/pipe: bad command startup -- throttling
Jul  1 10:37:51 nilandsplace postfix/error[18410]: E7DD0A4399: to=<nilandjp@nilandsplace.com>, relay=none, delay=58855, delays=58854/1.2/0/0.01, dsn=4.3.0, status=deferred (unknown mail transport error)
any help would be great
 
  


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
mail loops back to me (MX problem?) OR did not issue MAIL/EXPN/VRFY/ETRN skc Linux - Server 6 07-09-2011 09:18 PM
Sendmail mail loops back to me (MX problem?) shamly Red Hat 10 07-03-2011 02:04 AM
mail for weasy.info loops back to myself jculbreath Linux - Software 1 06-21-2011 03:40 PM
Postfix mail loops back to myself iceman42 Linux - Server 3 08-03-2010 05:59 AM
sendmail mail loops back but with a weird mail.barnhallrfc.com MX host masionas Linux - Server 2 12-09-2008 07:10 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 03:55 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