Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > Linux Forums > Server Operation

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 17th December 2009, 23:53
beckteck beckteck is offline
Junior Member
 
Join Date: Dec 2009
Posts: 16
Thanks: 2
Thanked 0 Times in 0 Posts
Exclamation I need some help with my first LAMP

okay, I have
Ubuntu Linux 8.04.3 LTS
Postfix
Dovecot

The server has been up and running since mid NOV. and running well.

But I have one issue that I know of.
Mail Warn log
warning: do not list domain domain.net in BOTH mydestination and virtual_alias_domains

It also has a duplicate listing for another domain on the server, but only the two report on this log as entries

I have been working on this for a week(not solid) and if remove domain.net, as well as the other domain, it will bounce the emails to those domains. with
<XX-domain.net@domain.net> (expanded from <XX@domain.net>): User unknown in virtual alias table

I have tried several things, and just can't seem to figure it out. With this being my first linux period, lett alone web server, I am afraid I do not have the experience.

Everytime I create a new user(through virtualmin) it actually creates two. example=XX@domain.net+XX-domain.net
This may be a non issue, but again, I don't know.

My 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 = 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
smtpd_sasl_auth_enable = yes
smtpd_sasl_local_domain = domain.net
smtpd_recipient_restrictions = permit_mynetworks,permit_sasl_authenticated,reject _unauth_destination
smtpd_sasl_security_options = noanonymous

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

myhostname = mail.domain.net
alias_maps = hash:/etc/aliases
alias_database = hash:/etc/aliases
myorigin = /etc/mailname
#mydestination = webserver, localhost, localhost.beckteck.net
mydestination = btwebserver, localhost, domain.net
mynetworks = 127.0.0.0/8 [::ffff:127.0.0.0]/104 [::1]/128
mailbox_command = procmail -a "$EXTENSION"
mailbox_size_limit = 0
recipient_delimiter = +
virtual_alias_maps = hash:/etc/postfix/virtual

and my /etc/postfix/virtual:
[... long list of email addresses mapped to system accounts ... --> edited by sjau]


Any insight would be great.
If possible I would like to fix this and not just start all over. It is in production as we speak

Thanks
S

Last edited by beckteck; 22nd February 2010 at 19:26. Reason: better not to have the email addresses displayed here otherwise spiders will find them and you'll get spammed.
Reply With Quote
Sponsored Links
  #2  
Old 18th December 2009, 16:29
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,741 Times in 2,575 Posts
Default

What are the outputs of
Code:
postconf -n | grep virtual_alias_domains
and
Code:
postconf -d | grep virtual_alias_domains
?
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
The Following User Says Thank You to falko For This Useful Post:
beckteck (12th January 2011)
  #3  
Old 18th December 2009, 16:49
beckteck beckteck is offline
Junior Member
 
Join Date: Dec 2009
Posts: 16
Thanks: 2
Thanked 0 Times in 0 Posts
Default output files

postconf -n | grep virtual_alias_domains
-No output-
postconf -d | grep virtual_alias_domains
$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_alias_domains = $virtual_alias_maps

Thanks for the reply
--S
Reply With Quote
  #4  
Old 19th December 2009, 16:29
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,741 Times in 2,575 Posts
Default

Please try this:
add the line
Code:
info-beckteck.net@beckteck.net info-beckteck.net
to /etc/postfix/virtual, run
Code:
postmap /etc/postfix/virtual
, remove beckteck.net from the mydestination line in /etc/postfix/main.cf and restart Postfix.
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #5  
Old 21st December 2009, 15:34
beckteck beckteck is offline
Junior Member
 
Join Date: Dec 2009
Posts: 16
Thanks: 2
Thanked 0 Times in 0 Posts
Default

Had no effect, still get a undeliverable mail reply to the sender.
Quote:
This is the mail system at host mail.domain.net.

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

<XX-domain.net@domain.net> (expanded from <XX@domain.net>): User
unknown in virtual alias table
This server will add @domain.net to all incoming mail to some but not all domains if they are not listed in the main.cf. it will add to at least two out of four.

Thanks
Scott

Last edited by beckteck; 22nd February 2010 at 19:28. Reason: removing email addresses
Reply With Quote
  #6  
Old 22nd December 2009, 15:42
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,741 Times in 2,575 Posts
Default

Any errors in your mail log?
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #7  
Old 22nd December 2009, 17:08
beckteck beckteck is offline
Junior Member
 
Join Date: Dec 2009
Posts: 16
Thanks: 2
Thanked 0 Times in 0 Posts
Default

Dec 21 09:11:12 btwebserver postfix/error[8298]: 8FDDA3424E: to=<XX-domain.net@domain.net>, orig_to=<XX@domain.net>, relay=none, delay=0.35, delays=0.24/0.03/0/0.08, dsn=5.0.0, status=bounced (User unknown in virtual alias table)

Last edited by beckteck; 22nd February 2010 at 19:29. Reason: removed email addresses
Reply With Quote
  #8  
Old 22nd December 2009, 17:51
beckteck beckteck is offline
Junior Member
 
Join Date: Dec 2009
Posts: 16
Thanks: 2
Thanked 0 Times in 0 Posts
Default

there was another error that I found in the mail.err log

Dec 21 09:07:33 btwebserver postfix/postmap[7861]: fatal: open /etc/postfix/virtual.db: Permission denied
Reply With Quote
  #9  
Old 22nd December 2009, 19:10
mandelbrot mandelbrot is offline
Junior Member
 
Join Date: Sep 2009
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Can you confirm permissions on /etc/postfix/virtual?

Code:
ls -lA /etc/postfix
Reply With Quote
  #10  
Old 22nd December 2009, 19:14
beckteck beckteck is offline
Junior Member
 
Join Date: Dec 2009
Posts: 16
Thanks: 2
Thanked 0 Times in 0 Posts
 
Default

permissions for /etc/postfix/virtual.db is set at 0644

Thanks
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
LAMP Cluster chris.zeman Suggest HOWTO 2 9th September 2007 16:28
Any security issues after installing LAMP on Feisty? jherzog HOWTO-Related Questions 1 5th September 2007 09:55
Question - LAMP System With Fedora hooligan HOWTO-Related Questions 3 4th August 2007 11:19
My first server.. mysql. problems /w Ubuntu Lamp Server mwburris Installation/Configuration 2 20th March 2007 04:28
Fedora 6 LAMP and How To Configure Dynamic DNS Roger Huston HOWTO-Related Questions 3 16th January 2007 20:07


All times are GMT +2. The time now is 08:28.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.