Linux - GeneralThis Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I installed PostFix Mail server and let me tell'ya, It's being the easiest thing I've ever done in Linux, 5 minutes installing it and I was rocking, I was even amazed to see how It recognized my old Sendmail configuration, all the mail stocked while I was struggling with sendmail got delivered as soon as I shot sendmail downstarted PostFix.
I've being reading about this mail server and I only see good news about it. It's fast, easy to install and administer and for what I had being reading, it's a lot more secure than Sendmail.
I have problems with mine. I received a message from mail server said that " Permission denies" or " user not found (or some thing like that)". I know for sure that the user does exit (I can send mail from my Linux box). I have read that I must set Local user at main.cf but don't know how. Please guide me through this problem. Thanks
#
# By default, Postfix relays mail
# - from "trusted" clients whose IP address matches $mynetworks,
# - from "trusted" clients matching $relay_domains or subdomains thereof,
# - from untrusted clients to destinations that match $relay_domains
# or subdomains thereof, except addresses with sender-specified routing.
# The default relay_domains value is $mydestination.
#
# In addition to the above, the Postfix SMTP server by default accepts mail
# that Postfix is final destination for:
# - destinations that match $inet_interfaces,
# - destinations that match $mydestination
# - destinations that match $virtual_maps.
# These destinations do not need to be listed in $relay_domains.
#
make sure the address is in mydestinations
David,
I sent mail to my server and here is a cut & past from /var/log/maillog
Jun 16 16:07:38 server postfix/smtpd[4207]: fatal: open database /etc/postfix/network_table.db: No such file or directory
Jun 16 16:07:39 server postfix/master[4199]: warning: process /usr/libexec/postfix/smtpd pid 4207 exit status 1
Jun 16 16:07:39 server postfix/master[4199]: warning: /usr/libexec/postfix/smtpd: bad command startup -- throttling
David,
Thanks for the input. I changed like you said and seem like problem is solved. Now, when I try to send mail from Yahoo to my mail server, I got this message:
Jun 16 22:04:16 server postfix/smtpd[4309]: connect from web10706.mail.yahoo.com[216.136.130.214]
Jun 16 22:04:16 server postfix/smtpd[4309]: 6B5142B8002: client=web10706.mail.yahoo.com[216.136.130.214]
Jun 16 22:04:16 server postfix/smtpd[4309]: reject: RCPT from web10706.mail.yahoo.com[216.136.130.214]: 550 <myname@mydomain.com>: User unknown; from=<my YahooID@yahoo.com> to=<myname@mydomain.com>
Jun 16 22:04:21 server postfix/smtpd[4309]: disconnect from web10706.mail.yahoo.com[216.136.130.214]
I know I set myname on my Linux box and home directory locate at /home/myname
here what I got
[root@server root]# tail -f /var/log/maillog
Jun 16 23:04:09 server postfix/pickup[4302]:
B641D2B8002: uid=0 from=<root>
Jun 16 23:04:09 server postfix/cleanup[4456]:
B641D2B8002:
message-id=<20020617060409.B641D2B8002@myhost.mydomain.com>
Jun 16 23:04:09 server postfix/nqmgr[4303]:
B641D2B8002: from=<root@mydomain.com>, size=300,
nrcpt=1 (queue active)
Jun 16 23:04:09 server postfix/local[4458]:
B641D2B8002: to=<myname@mydomain.com>, relay=local,
delay=0, status=bounced (cannot access mailbox
/home/local/myname//var/spool/mail/user for user
myname. cannot create file exclusively: No such file
or directory)
Jun 16 23:04:09 server postfix/cleanup[4456]:
DF2302B8003:
message-id=<20020617060409.DF2302B8003@myhost.mydomain.com>
Jun 16 23:04:09 server postfix/nqmgr[4303]:
DF2302B8003: from=<>, size=2127, nrcpt=1 (queue
active)
Jun 16 23:04:09 server postfix/local[4458]:
DF2302B8003: to=<postfix@mydomain.com>, relay=local,
delay=0, status=bounced (cannot access mailbox
/var/spool/postfix//var/spool/mail/user for user
postfix. cannot create file exclusively: No such file
or directory)
Thanks
Is it possible to setup relay acceptance of any known user from any unknown emote station?
IE: user "joeblow" has an email box on the server. His password is "blow" (crude example). He wants to use his email client he has on his laptop, and thus sets it up to use server.domain.com as the smtp for it.
Now, joeblow at home sends mail out, his home ip is some.odd.ip.address.
Would joeblow be able to take his laptop on the road, hook into client networks, or hotel networks, or a friend's house network and still send mail?
Since he uses his username/password, is there a way to set the smtp server to ALWAYS allow relay of known username/passwords (regardless what ip they may be coming from)?
This is a question I have been digging and digging and digging for the answer too... its so blantently obvious the need for such a thing, so I am baffled why no one mentions it in any docs, or manuals, or howtos.
Because OBVIOUSLY you do not want to simply set the smtp to relay for 'anything'... frigging spammers of the world ruined that luxury (assholes). But restricting to IP BANKS is just as stupid, and even worse because you never know where valid users may be at!!!
you can use pop_before_smtp. this will set smtp access to your ip address when you login to pop. it will reset after a few minutes.
Another thing you can do is use secure smtp
if you use pop_before_smtp use secure pop server or run it through stunnel.
then you can safely allow relay to everywhere because smtp will not allow access unless you login with pop first.
I think you have set too many things up in your config file
normally only a couple of things are set to get it working, but this is how you set the mailbox location
MAILBOX DELIVERY
The default per-user mailbox is a file in the UNIX mail
spool directory (/var/mail/user or /var/spool/mail/user);
the location can be specified with the mail_spool_direc-
tory configuration parameter.
CONFIGURATION PARAMETERS
The following main.cf parameters are especially relevant
to this program. See the Postfix main.cf file for syntax
details and for default values. Use the postfix reload
command after a configuration change.
Mailbox delivery
fallback_transport
Message transport for recipients that are not found
in the UNIX passwd database. This parameter over-
rides luser_relay.
home_mailbox
Pathname of a mailbox relative to a user's home
directory. Specify a path ending in / for maildir-
style delivery.
luser_relay
Destination (@domain or address) for non-existent
users. The address is subjected to $name expan-
sion.
mail_spool_directory
Directory with UNIX-style mailboxes. The default
pathname is system dependent. Specify a path end-
ing in / for maildir-style delivery.
mailbox_command
External command to use for mailbox delivery. The
command executes with the recipient privileges
(exception: root). The string is subject to $name
expansions.
mailbox_command_maps
Lookup tables with per-recipient external commands
to use for mailbox delivery. Behavior is as with
mailbox_command.
mailbox_transport
Message transport to use for mailbox delivery to
all local recipients, whether or not they are found
in the UNIX passwd database. This parameter over-
rides all other configuration parameters that con-
trol mailbox delivery, including luser_relay.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.