Networking :: Sendmail - Change Domainname Local Users
Mar 26, 2010
I have the following problem and tried (almost) anything to fix it but without a full success.
We're running a server with CentOS 5.4. Every night a logwatch report is send. These mails are rejected by our mailserver because some invalid details. These mails are send to local user root which is redirected to another external mail address with /etc/aliases.
At first the mail was send from root@localhost.localdomain to root@localhost.localdomain. As you can imagine, our mailserver rejected this because the localhost.localdomain parts. So I changed the sendmail config with these options:
This solved my problem partially: Mail is now coming from root@domainA.com (which is OK), but is send to root@slave02.domainA.com (slave02 is the local hostname), which is not OK. I tried everything I could find to change that last part to, but nothing seems to work.
I found 2 previous posts, one from 2005 and one from 2006. The 2005 post was not very helpful and the 2006 threads are not exactly what I was expecting. So I wanted to ask the question to be sure. I have already stood up the new fedora 12 server. The old server is also fedora 12. I need to migrate local users and sendmail mailboxes. In the past couple of years the environment was small enough to create a copy of the users and then have the users mail themselves, but I want to start migrating users/mailboxes properly.
On a unix level I am a jr admin, but I have extensive senior level experience as a windows engineer and network engineer. I do feel comfortable with using the unix command line, but usually operate the unix systems thru webmin because I am not familular with more complex commands. Ideally a software solution to migrate users and/or mailboxes from one server to another is what I am looking for, but in leiu of a software solution I still need to migrate user accounts and their mailboxes. LDAP is not in place, but if the process becomes easier with LDAP I am willing to do what is needed to set up LDAP. (I have no previous experience setting up LDAP)
I do not want to change my mail server from sendmail to different software. At least right now. Both systems are up and running. They can connect to each other via public ipv4 address' only. The new server has already been installed and configured with all the software to match the old server. How do I migrate users and sendmail mailboxes from one fedora 12 server to another fedora 12 server?
The problem is to make sendmail use different LDA for diferent users in the same domain. For example, deliver bob@some.domain with procmail and genry@some.domain with mail.local.
I remember back when I used Windows, there was a shell command call "net view", which would allow me to see all the other users on my wireless net.
Is there any command or application that can do this? I dont mind if it is a terminal command either, but I would really like to know a way that I could see other users on my network.
I am on ubuntu server and its joined to an W3k Domain thru winbind/samba. However everything works fine and Windows and Local users can login to the machine without any problem. However when I wanted to create a local user X and change his password I couldn't. It created the local user X but I could not change the password.
I have a postfix mail server on ubuntu 10.04 lts behind a router. so all local users are fetching/sending mails through ms outlook using local IP. Sometimes when internet goes down and any mail send then it bounced back immediately saying domain not found. Can u please tell me how i configure to hold all mails in postfix server rather than bounce when internet fails and will pass through when restored the internet around 15-30 minutes?
how to map all domain users form group Domain Users to local group users (and maybe some more)? Im using Ubuntu 10.04 x32. Its connected to my domain using Samba and Winbind, I can login using my domain credentials, automatically map user folder form DFS server, but I think that domain users have too much priviledges in the system and want to restrict them as much as possible
Can connect to our mail server using telnet onto port 25 and this works correctly, 'ehlo whatever' shows output as expected.
However using a mail client to connect it gives an authentication error and the following appears in the maillog file;
did not issue MAIL/EXPN/VRFY/ETRN during connection to MTA
what to look for in the config, this works correctly on our development box but not on our production server. Could it be another program is interfering with the connection?
Sendmail is running in standalone mode not through the xinetd daemon.
I am using the PLAIN AUTH method as to try and avoid getting more errors.
I have fedora running as our email server at work using sendmail. It used to have spamassassin and MailScanner installed, but one of those died over the weekend and killed the mail server. We do not need either of these as we are using a web based spam filter now (postini), so I tried removing these. I have discovered that the mail is in the mqueue waiting for delivery to the users mailboxes. I have tried using "sendmail -q -v":
Code: Running /var/spool/mqueue/n51Jx6Gg023820 (sequence 1 of 1174) <abaughman@grandproductsinc.com>... Connecting to local... <abaughman@grandproductsinc.com>... Deferred: local mailer (/usr/bin/procmail) exited with EX_TEMPFAIL
Running /var/spool/mqueue/n51JsuRe023619 (sequence 2 of 1174) <ksullivan@grandproductsinc.com>... Connecting to local... <ksullivan@grandproductsinc.com>... Deferred: local mailer (/usr/bin/procmail) exited with EX_TEMPFAIL .....
I do not have a procmail config file: /etc/procmailrc. I am not sure why, or what it should be, perhaps that is the problem. I guess I don't exactly know how this server runs all that well. I was able to get it up and running but never understood it enough to now find what is not working correctly.
i have fedora5 installed on my machine MACH1, which acts as a linux server for few machines. Its over network and we have a dedicated mail server too which is globally accessible. I wanted to set up a local mail server on MACH1, so that i shall be able to send/receive mails from all the users as well as to our other global mail server(on internet).
In my network I only have one machine that is configured to send email outside the network. How do I instruct my local copy of sendmail to use that server as a relay?
I've tried to configure the mail service in RHEL6 but seems both sendmail and postfix can't use local user located in /etc/passwd.
Like, user Tommy and Jake they got User Unknow from maillog Tommy:x:506:507::/home/Tommy:/bin/bash Jake:x:507:508::/home/Jake:/bin/bash But IF I use users' home folder not located in /home then it can go throught.mailuser2:x:513:514::/rhome/mailuser/mailuser2:/bin/bash mailuser3:x:514:515::/rhome/mailuser/mailuser3:/bin/bash
I am having Sendmail ver 8.13.1 installed on CentOS 4.5. Recently we have noticed that some emails are not getting delivered to user. Mailserver is receiving emails and they are getting processed but not getting delivered to user.
I have checked mail log and in the log it shows that email has been delivered to user below is log for reference
I don't know what happened but sendmail suddenly stopped authenticate my users who tries to send mail. I use slackware 13.0 and sendmail for SMTP with ssl and plain authentication. Imapd works fine. There is nothing in logs just that the client did not issue MAIL/EXPN/VRFY/ETRN during connection.
For a project that I have been assigned to, I need to send emails to a business partner(business_partner.com) from one production server. However, my emails neither reach their destination nor bounce back to me.
Working with our business partner's IT support, the following error was discovered in their maillogs:
Quote:
Further analysis by my IT support shows that emails are successfully sent out ("Message accepted for delivery"):
Quote:
The app I coded is not using a public internet email address (e.g. me@hidden_domain_name.com) to send these notifications.
Instead, it uses an intranet email address (the server's where my code resides: user_name@servername.hidden_domain_name.com).
We created an alias but it made no change. Would adding my public internet email address to "trusted-users" file (we use sendmail)
I have a strange problem with my debian lenny server. I am running ispconfig 3, squirrelmail, webmin, clamav, etc on my lenny server. I have a few domain names binded to my ip adress. Until yesterday, everything worked fine. Today, i couldn't seem to reach my mailbox, and my website appeared to be offline. But when someone checks it from outside, it works fine! Only i cant reach it. This problem only occurs with one of the six domainnames i have. The rest is reachable for me.
I checked the logs, the ipadresses, everything seems fine. I have no clue what it could be... anyone suggestions?
Figured out the problem, party... it's a problem with my XP. If i boot in Windows 7 the site is reachable. Doesn't make sense tho.
I want to setup sendmail to alert for Nagios, OSSEC, redmine, ...
I configure sendmail to work with Gmail smtp follow this guide. I disable local delivery in sendmail by adding the following lines in sendmail.mc:
Code: define(`MAIL_HUB', `xx.localdomain.')dnl define(`LOCAL_RELAY', `xx.localdomain.')dnl it works but this messages seems to be stuck in sendmail queue: Code: sendmail -bp ...
I have a problem with sendmail. I am using the zen.spamhaus.org dnsbl, and it is doing a wonderful job of blocking incoming spam from open relays. But it is blocking my users who are on a dynamic ip range from any isp remotely. They should be able to authenticate and send messages no matter where they are as long as they authenticate right? I just want to use the blacklist to block incoming mail to my server that is being distributed to our email addresses.
I want to block people that are hosting mail servers and sending mail to my domain from isp sub-nets. But I don't want to block my users that are sitting on isp subnets using their mail client to authenticate over smtp and send an email from my mail servers.
I want to know is it possible in Sendmail to restrict some users from sending / receiving mail to / from outside world i.e. they should be able to send and receive mails only from local domain.
I'm going crazy with this one. For whatever reason, sendmail will not authorize any users. I've tried multiple logins (all with good credentials) but still get login fail, ie (FYI this is a sendmail/MailScanner setup if it makes any difference):
220 hostname.net ESMTP Sendmail 8.13.8/8.13.8; Fri, 19 Nov 2010 12:07:08 -0600 ehlo hostname.net 250-hostname.net Hello testdomain.com [123.123.123.123], pleased to meet you
dammit... all that typing and I hit the wrong "submit" button. *sigh*
Ok, I have a couple of SMTP servers for our infrastructure. They are running Postfix. I have them configured so that specific email addresses such as support@mydomain.com and billing@mydomain.com all go to a new support server that I am building with osTicket. Lets call that server SUPP1.
SUPP1 runs sendmail from the default install of CentOS 5 i386. At this point everything runs great. New emails get added into the osTicket system via a pipe in sendmail. Here's where the problem comes in. In order to accept mail, sendmail has to have the domain listed in local-host-names and the addresses in virtusertable. That works just dandy. But in doing so, sendmail believes it is the destination SMTP server for "mydomain.com". That means that I can't send mail from that server back into my normal SMTP servers. So things like the LogWatch, cron jobs, etc can't send notifications. Is there a way to work around that? For sendmail to ignore local-host-names for outbound email or something?
Well I want my sendmail to pipe all users' incoming emails to /dev/null ... I just don't want to accept emails. Every user that exist on the system currently or will be made in future, I want their incoming emails to them to be piped to /dev/null .... I just want those users to be able to send emails.
I have an RHEL 5.3 system where NIS logins are working perfectly, but authentication doesn't seem to be working for non-root local users. I can't login either remotely or at the console with a local user, and I can't even su to them unless I'm doing so from root (i.e. when no password is required).
I've reset the password, I've deleted and recreated the user, and nothing. nsswitch.conf does have "files" listed as part of the config, which was really the main place I'd have assumed the issue could be. su gives "incorrect password", and ssh gives "userauth failure". /var/log/secure shows "su: pam_listfile(su:auth): Refused user <username> for service su", and same for the ssh attempts (with ssh in for su, of course). I've reviewed my pam.d files, and they seem to be the same as on a working machine, but I'm not 100% conversant with pam so I might be missing something.
I want to have a shared area for movies, music, etc. where files are available for all users. What is the best way to do this? I've tried a few different things, (ie. creating a folder and sharing it among a group, but for some reason it doesn't seem to work the way I want it to. I'm now thinking maybe have a partition like /share and set the permissions to all in fstab, but I'm not sure.
I am stuck in a weird situation and could definitely use some help from gurus in security area.
I have categorized my users into 3: 1. root user 2. other local users 3. LDAP users
I want to setup following 2 usecases:
a) 1. Allow keybased ssh and scp to root users 2. Allow ssh but disallow scp service to other local users 3. Disallow ssh and scp to LDAP users
b)
1. Allow keybased ssh and scp to root users 2. Disallow both ssh and scp to other local users 3. Disallow ssh but allow scp to LDAP users
For the 1. in both cases, I think PermitRootLogin in sshd_config could . For the 3. I am thinking of deploying rssh to control scp service access, since ssh will be restricted anyways.
Problem area is 2. primarily.
i) How to allow ssh but disallow scp to 'other local users' ii) How to disallow both ssh and scp to 'other local users'