
17th December 2009, 23:53
|
|
Junior Member
|
|
Join Date: Dec 2009
Posts: 16
Thanks: 2
Thanked 0 Times in 0 Posts
|
|
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.
|

18th December 2009, 16:29
|
|
Super Moderator
|
|
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,665
Thanks: 1,896
Thanked 2,593 Times in 2,444 Posts
|
|
What are the outputs of
Code:
postconf -n | grep virtual_alias_domains
and
Code:
postconf -d | grep virtual_alias_domains
?
|
|
The Following User Says Thank You to falko For This Useful Post:
|
|

18th December 2009, 16:49
|
|
Junior Member
|
|
Join Date: Dec 2009
Posts: 16
Thanks: 2
Thanked 0 Times in 0 Posts
|
|
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
|

19th December 2009, 16:29
|
|
Super Moderator
|
|
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,665
Thanks: 1,896
Thanked 2,593 Times in 2,444 Posts
|
|
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.
|

21st December 2009, 15:34
|
|
Junior Member
|
|
Join Date: Dec 2009
Posts: 16
Thanks: 2
Thanked 0 Times in 0 Posts
|
|
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
|

22nd December 2009, 15:42
|
|
Super Moderator
|
|
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,665
Thanks: 1,896
Thanked 2,593 Times in 2,444 Posts
|
|
Any errors in your mail log?
|

22nd December 2009, 17:08
|
|
Junior Member
|
|
Join Date: Dec 2009
Posts: 16
Thanks: 2
Thanked 0 Times in 0 Posts
|
|
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
|

22nd December 2009, 17:51
|
|
Junior Member
|
|
Join Date: Dec 2009
Posts: 16
Thanks: 2
Thanked 0 Times in 0 Posts
|
|
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
|

22nd December 2009, 19:10
|
|
Junior Member
|
|
Join Date: Sep 2009
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Can you confirm permissions on /etc/postfix/virtual?
Code:
ls -lA /etc/postfix
|

22nd December 2009, 19:14
|
|
Junior Member
|
|
Join Date: Dec 2009
Posts: 16
Thanks: 2
Thanked 0 Times in 0 Posts
|
|
permissions for /etc/postfix/virtual.db is set at 0644
Thanks
|
| Thread Tools |
|
|
| Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT +2. The time now is 08:16.
|
Recent comments
23 hours 5 min ago
1 day 8 hours ago
1 day 9 hours ago
1 day 12 hours ago
1 day 17 hours ago
1 day 17 hours ago
1 day 19 hours ago
2 days 5 hours ago
2 days 10 hours ago
2 days 12 hours ago