LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (https://www.linuxquestions.org/questions/linux-server-73/)
-   -   Strange error in mail.warn that I can't get rid of though it's removed from main.cf (https://www.linuxquestions.org/questions/linux-server-73/strange-error-in-mail-warn-that-i-cant-get-rid-of-though-its-removed-from-main-cf-726028/)

Nickalf 05-14-2009 01:06 PM

Need help on error in mail.warn about relay_domains that's removed from my main.cf
 
Hi fellow Linuxians,

I recently upgraded my Distro to Ubuntu Server v8.04

Though all was fine on the older Distro, I'm now getting hundreds of entries like this in my Postfix mail.warn relating to all my domains

Code:

warning: do not list domain RiverEdgeNJ.org
in BOTH virtual_alias_domains and relay_domains

RiverEdgeNJ.org is exactly how I entered this domain in the virtual_alias_domains line of my main.cf but it also shows
Code:

warning: do not list domain riveredgenj.org
in BOTH virtual_alias_domains and relay_domains

which is not the way I typed it in my main.cf

Is there another place relay_domains is referred to in this Server Distro ?
If not, why would I get this error so many times ?

Thanks,
Nick. . .

MensaWater 05-14-2009 02:03 PM

If you're using sendmail then relay is defined in the access.db file which is compiled from the access text file.

Nickalf 05-14-2009 02:16 PM

Hi JLightner,

No, I'm using Postfix ( config file is /etc/postfix/main.cf )

Thanx 4 the comeback,
Nick. . .

MensaWater 05-15-2009 10:12 AM

This man page suggests there is an access and access.dbm in Postfix. Not sure of syntax or if it's even relevant since I don't use Postfix:

http://www.postfix.org/access.5.html

Nickalf 05-16-2009 12:08 AM

Thanks, but that link doesn't show any reference to "relay_domains" - besides, my system doesn't have either one of those files...

Nick. . .

billymayday 05-16-2009 12:10 AM

Can you show

postconf -n

Nickalf 05-17-2009 10:39 AM

Oops - double posted - this one removed - see below

Nickalf 05-17-2009 10:42 AM

Sure
Code:

alias_maps = hash:/etc/postfix/aliases.map
append_dot_mydomain = no
biff = no
broken_sasl_auth_clients = yes
config_directory = /etc/postfix
delay_warning_time = 4h
inet_interfaces = all
mailbox_command = procmail -a "$EXTENSION"
mailbox_size_limit = 0
mydestination = $myhostname + localhost.$mydomain, $mydomain, localhost.net, localhost
myhostname = myhost.org
mynetworks = 127.0.0.0/8
myorigin = /etc/mailname
recipient_delimiter = +
relayhost =
smtp_tls_session_cache_database = btree:${queue_directory}/smtp_scache
smtpd_banner = $myhostname ESMTP $mail_name (Ubuntu)
smtpd_recipient_restrictions = permit_mynetworks, permit_sasl_authenticated, reject_unauth_destination
smtpd_sasl_auth_enable = yes
smtpd_sasl_local_domain = $myhostname
smtpd_sasl_security_options = noanonymous
smtpd_tls_cert_file = /etc/ssl/certs/ssl-cert-snakeoil.pem
smtpd_tls_key_file = /etc/ssl/private/ssl-cert-snakeoil.key
smtpd_tls_session_cache_database = btree:${queue_directory}/smtpd_scache
smtpd_use_tls = yes
virtual_alias_domains = 4homes.org,5sg.eu,5sg.net,5sg.org,5sg.us,5sg.in,5skilledGentlemen.com, airoyal.com,Bogert.com,bogert.org,boxoffice.ws,bruvon.com,cameo.ws,carlg.com,cgafire.com, chargeit.org,chargeit.org.uk,chargeit.ws,chargeit.in,citycarpool.net,cofc.ws,DavidJones.ws, e-rent.org,eAlbums.ws,ecredits.biz,ecredits.com,ecredits.mobi,ecredits.org,ecredits.org.uk, ecredits.ws,eRent.org.uk,eusounds.eu,exoticbagels.com,FiveSkilledGentlemen.com,homepg.us, my.homepg.us,HostingFor1Dollar.com,50pHosting.com,50pHosting.co.uk,aDollarHosting.com, 75cHosting.eu,75cHosting.com,99cHosting.com,HostForLess.ws,HostForLess.eu,HostForLess.in, Joys.ws,Kastle.org,Nickalfs.kastle.org,LegendOfAleyna.com,LeoniaSummerstage.com,LeoniaSummerstage.org, ListServ.ws,my.listserv.ws,myad.org,mybookhost.com,mychat.ws,myclient.org,myfile.net,myhelpchat.com, myhelpchat.us,myhits.org,myhost.me.uk,myhost.mobi,myhost.org.uk,myhost.tv,myhost.co.in,myho.st, MyOwnBank.com,myphoto.ws,mysearchsite.org,myservices.ws,myshots.org,newmilfordrotary.org,Nickalf.com, Nickalf.eu,NickBarter.eu,NicksBlog.ws,Niks.ws,njlinux.org,njmac.us,njos2.org,njsounds.com,njtheater.net, noeladavies.com,nytheater.net,omtech.org,omtechcorp.com,oradellrotary.org,proman.us,proman.ws,proman.me, ProMan.mobi,PerlNJ.com,PerlNJ.org,PhPNJ.net,PerlUG.com,PerlUG.org,PerlUG.net,RiverEdgeChamber.org, RiverEdgeNJ.org,riveredgerotary.org,sex-x.com,smoothpower.com,sosNow.ws,sos-Now.eu,spamik.com,spamic.com, theblog.ws,theipod.ws,vantasialtd.com,VidiNik.com,VidiNik.eu,VidiNik.in,VidiNik.info,VidiNik.mobi, VidiNik.net,VidiNik.org,VidiNik.ws,WallingtonChamber.com,WallingtonChamber.org, WhereToHost.me,WhereToHost.us,WhereToHost.org,WhereToHost.in,WhereToHost.mobi,ZoomIt.ws
virtual_alias_maps = hash:/etc/postfix/virtual.map

:) Nick. . .

billymayday 05-17-2009 03:52 PM

What does

grep -ir riveredgenj.org /etc/postfix/*

show?

Nickalf 05-18-2009 12:03 AM

/etc/postfix/main.cf: RiverEdgeNJ.org,riveredgerotary.org,sex-x.com,smoothpower.com,sosNow.ws,sos-Now.eu,spamik.com,spamic.com,

/etc/postfix/virtual.map: all the eMail addresses of RiverEdgeNJ.org which I'm not going to show here

and

Binary file /etc/postfix/virtual.map.db matches

... none show the lower case riveredgenj.org

billymayday 05-18-2009 12:22 AM

Odd.

BTW, why do you have

mydestination = $myhostname + localhost.$mydomain, $mydomain, localhost.net, localhost

rather than

mydestination = $myhostname, localhost.$mydomain, $mydomain, localhost.net, localhost

?

Could you show

postconf -d | grep relay

Nickalf 05-20-2009 10:36 AM

I 'have' shown....

billymayday 05-20-2009 03:22 PM

Where?

Nickalf 05-27-2009 10:04 PM

Sorry - was tired when I missread your question...


I used the line from the previous default main.cf in the older distro.

I'll try it without the + sign and see if that helps, thanks...


Nick. . .

chitambira 05-28-2009 06:22 AM

Quote:

/etc/postfix/main.cf: RiverEdgeNJ.org,riveredgerotary.org,sex-x.com,smoothpower.com,sosNow.ws,sos-Now.eu,spamik.com,spamic.com,

/etc/postfix/virtual.map: all the eMail addresses of RiverEdgeNJ.org which I'm not going to show here
Postfix acknowledges virtual domains by virtue of having virtual_aliases. This means that you wont need to define both virtual_alias_domains and virtual_alias_maps. If all your virtual users are mapped in virtual_alias_maps, then you can remove RiverEdgeNJ.org from the virtual_alias_domains


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